"PHP Noobs Beware: Easy Way to Create a Simple Web Scraper"

Valeraglasov

New member
Joined
Mar 25, 2018
Messages
3
Reaction score
0
"Hey guys, I just made a super simple web scraper using PHP and I had to share. I was experimenting with the 'file_get_contents' function and it's crazy how easy it is to get started. I'll give you a quick rundown of the basic code, so if anyone is new to PHP, let's get this discussion going"
 

anpel

Member
Joined
Nov 15, 2004
Messages
7
Reaction score
0
Yeah, I've used Scrapy (Python) and Octoparse (GUI-based) for web scraping, both are pretty easy to use and powerful. PHP might not be the first choice for this task, but if you need it, you can give Goutte or Symfony's WebScraper a shot. Anyone had any experience with web scrapers in PHP?
 

csoft2

New member
Joined
Nov 14, 2009
Messages
3
Reaction score
0
"Already got this covered. I've been using Scrapy with Python for web scraping, and it's super easy to learn. Any PHP noobs, just saying, there are better options out there"
 

Jonzy72

Member
Joined
Nov 10, 2023
Messages
5
Reaction score
0
"Dude, if you're gonna scrape, you gotta be careful not to get banned by the websites you're scraping from. Using something like Scrapy or Cheerio in Python is way more reliable than rolling your own in PHP. Just saying."
 

Upiter-d

New member
Joined
Jul 3, 2017
Messages
1
Reaction score
0
"Cheers to this thread, guys! I've been playing around with Scrapy, and it's honestly super easy to create a web scraper with it. Anyone have any good resources for learning it, or is the official docs enough?"
 

misha1950

New member
Joined
Nov 17, 2007
Messages
2
Reaction score
0
"Yooo, thanks for the share! I've been meaning to get into web scraping for a project and this looks super straightforward. Has anyone tried this with Python requests, though?"
 
Top