Hi Guys,
I know that Scrapy can be used to scrape data. But also I want the code to be presentable on Github. I want to know what are best practices for web scraping using Python.
Also, if you guys know any web scraping project on Github please provide me the link to it.
Latest comments (29)
github.com/RGGH
Scrapy repos x 6
Scrapy has steeper learning curve, but that means it's better once you've learned it!
Thanks for sharing your code!
Indeed, in the past, I used Python.
requestsis OK.As you have noticed in some of the comments, you might try Node.js, where you can use Cheerio, which is jQuery-ish; but has no problem with CORS. (You may still need to fetch with axios or Node-fetch, though.)
Yup, but still I'm wondering why almost no one is in favour of
Scrapy.The best way is to not get caught 🙃
I just use Nokogiri
Haha
Scrapy is fastests but hardest to master.
Beautiful Soup and Selenium are better for beginners.
I agree.
BeautifulSoup is great, and I've had a good experience with it. lxml (XPath) is my go-to though, and I like it!
Thanks for sharing!
Actually both!
I've found puppeteer and cheerio to be a good combo.
This is the first time I've heard about cheerio. It looks nice but honestly I'm not a big fan of jquery.
Me either.
I was pushed for time tbf and found cheerio made things a little less verbose allowing me to get things done quickly :D
Oh, ok.
I would suggest Selenium, its very easy with few methods, which can be used to explore DOM and fetch data.
I myself have made few projects with the help of youtube.
Try any project tutorial from youtube provided if you are alright familiar with basic python you will understand without any problem
Thanks for the suggestion but I don't think selenium would be the best fit for me.
There are more than one ways to scrape with Python, but Beautiful Soup is definitely a stable, well documented, tried and tested library to use. I made a video about how to use it if that might help. Also wrote an article too 😀
Thanks! Will definitely take a look!
I created a Telegram automated Bot. I used Webscraping in the project. You can check the project here github.com/maheshthedev/DataScienc...
I see you've used BeautifulSoup. Thanks for the code!