Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no text returned for certain URLS #22

Open
dpkesling opened this issue Jun 20, 2022 · 0 comments
Open

no text returned for certain URLS #22

dpkesling opened this issue Jun 20, 2022 · 0 comments

Comments

@dpkesling
Copy link

d_test_out.csv

I have a program which reads the URLs of US television news pages to do some scraping. The master list is of some 558 stations.
For some reason, the URLs on the attached list, when queried, return no text.
Here is the code I punched out to just check these URLs, the attached .csv file contains all the "problem" sites.

for(current_url in test_urls) {
raw_page <- read_html(current_url)
if(length(raw_page) > 1) next
print(current_url)
capture <- c(capture,current_url)
print(raw_page)
}

I'll tell you that ALL of the sites, at least the ones I spot checked, appear to be using the same CSS template... so I assume that read_html and that particular CSS don't like each other.

@dpkesling dpkesling changed the title no text returned for cretain URLS no text returned for certain URLS Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant