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

Returns 1st item and later empty items #2

Open
ZNevzz opened this issue Nov 15, 2016 · 2 comments
Open

Returns 1st item and later empty items #2

ZNevzz opened this issue Nov 15, 2016 · 2 comments

Comments

@ZNevzz
Copy link
Member

ZNevzz commented Nov 15, 2016

When crawling on http://www.moneycontrol.com/news/all-news-All-1-next-0.html
the xpath used is mentioned at https://github.com/ZNClub-PA-ML-AI/DataSets#moneycontrol


it works for only the 1st item, and rest it gives empty lists

@ZNevzz
Copy link
Member Author

ZNevzz commented Nov 15, 2016

  1. Checked if moneycontrol or website is blocking crawling, but it does not.
  2. There is a javascript line between 1st and rest elements of list. Checked if that was the reason for issue, but it is just a googletag function.
  3. Checked with stackoverflow, found that AJAX responses which require cookies create problems for crawlers.
    Links:
    http://stackoverflow.com/questions/40444957/scrapy-returning-empty-list-for-xpath


    http://stackoverflow.com/questions/31094615/xpath-locates-html-element-correctly-in-console-but-returns-empty-array-when-use?rq=1

@ZNevzz
Copy link
Member Author

ZNevzz commented Dec 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant