Need to create a bot that scrapes websites

soheb123

Junior Member
Joined
Jun 14, 2016
Messages
165
Reaction score
90
I want to learn how to scrape data from websites for my own personal projects. I have reasonable web dev experience with JS CSS and HTML so im familiar with programming. What language / resources would you guys recommend?
 
Most near to your skill would seem PHP and can use curl to scrape. is very easy
 
Puppeteer is great for webscraping.

A lot of sites these days require you to have javascript enabled. So you need to automate an actual browser.

The docs are a good place to start. https://pptr.dev/
 
You can utilize PHP if you want to do basic web scraping that involves grabbing HTML from web pages and analyzing them using String manipulation. You can also do this through Python using BeautifulSoup.

If you want to scrape pages that have Javascript being invoked on the page with dynamic web elements, I would recommend checking out Selenium. This can be run on many different languages but I recommend Java. It acts as a browser emulator which can interact with dynamic elements on a web page and give you more information than just basic HTML scraping.
 
Wow this was more help than I was expecting. Thank you guys I’ll be sure to read into all of these, feel free to throw out more
 
Check out github.

You could probably find something that is ready to go or something that you can fork and make your own modifications to.
 
Cheerio (Javascript) and Beautiful soup (Python)
https://github.com/cheeriojs/cheeriohttps://www.crummy.com/software/BeautifulSoup/bs4/doc/
However they don't execute JS or load any external resource.
 
Request python package for basic stuff and selenium for botting.
 
Back
Top