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

Detail object of scraped element #126

Open
rafrasenberg opened this issue Apr 13, 2019 · 1 comment
Open

Detail object of scraped element #126

rafrasenberg opened this issue Apr 13, 2019 · 1 comment

Comments

@rafrasenberg
Copy link

rafrasenberg commented Apr 13, 2019

Hello,

I am following the documentation however this part does not seem to work anymore

It is not necessary but just for the purpose of this example let’s scrape the title of a news article from the article detail page. On an article detail page the headline of the article is enclosed by a <h1> tag with an id named ‘firstHeading’. So //h1[@id="firstHeading"]/text() should give us the headline. Since we want to scrape from the detail page, we have to activate the ‘from_detail_page’ check box.

Is there an alternative way to do this? I would like to get the description of the full article how can I access this all within the same scraper?

//h1[@id="firstHeading"]/text() is not working anymore.

You will get this output:
dynamic_scraper.models.DoesNotExist: RequestPageType matching query does not exist.

Thanks in advance!

@rafrasenberg
Copy link
Author

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