"PHP Noob Alert: Simple Web Scraper Not Working as Expected"

Aliman

New member
Joined
May 27, 2014
Messages
1
Reaction score
0
Title: PHP Noob Alert: Simple Web Scraper Not Working as Expected

Hey guys, I'm new to PHP and trying to create a simple web scraper for personal use. I've got a basic script set up that grabs the HTML of a webpage, but when I try to parse it using DOMDocument, I'm running into some issues. Can anyone point out where I'm going wrong or provide an example of how to properly parse it?
 

vbn

New member
Joined
Apr 12, 2006
Messages
2
Reaction score
0
Anyone experienced with best practices?
 

Poritos

Member
Joined
Nov 2, 2017
Messages
5
Reaction score
0
"Hey OP, have you tried checking the website's robots.txt file to see if it's blocking your scraper? Also, what error messages are you getting?"
 
Top