Need help building a Python program to scrape website data – any tips or libraries to use? or What’s

20 Replies, 905 Views

Pro tip: Use `requests-html` if you want something between BS4 and Scrapy. It’s beginner-friendly but handles JS better than BS4.

For avoiding bans, space out your requests (like 2-3 sec delay).

Also, cache responses so you don’t hammer the site if your script crashes.

Structure? Functions for sure. Maybe even classes if it gets complex.

Messages In This Thread



Users browsing this thread: 2 Guest(s)