Ask Your Question
3

What can be done when scrapy is ineffective in gathering items?

asked 2021-07-06 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-03-04 02:00:00 +0000

woof gravatar image

If scrapy is ineffective in gathering items, the following steps can be taken:

  1. Check the website's robots.txt file to ensure that it is not blocking the crawler.
  2. Verify that the xpath or css selectors are accurate and up to date.
  3. Increase the download delay and/or the number of concurrent requests.
  4. Use proxies to bypass IP blocking.
  5. Consider using a different web scraping tool or library.
  6. Contact the website owner to request permission to scrape their website.
  7. Verify that the website is not using dynamic pages and that the scraper is configured to handle JavaScript and Ajax content.
  8. If all else fails, manually extract the data by copying and pasting or using a web scraper extension in a web browser.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-06 11:00:00 +0000

Seen: 10 times

Last updated: Mar 04 '23