PHP - Website Data Scraping Tutorial

10 replies
PHP - Website Data Scraping Tutorial

When I started out in PHP this was one of the most important skills to have, because with this skill you can generate some good income writing useful scripts and web applications, so after being emailed and pm'd about 100000 times about help etc I had to delete one email address because it was overly spammed I decided to write a small tutorial on my programming forum.

How to Scrape Specific Information from a Website using PHP - PHP Tutorials - Tutorials - CoderzSpot - A Programmers/Coders Forum
Read more there ^
#data #php #scraping #tutorial #website
  • Profile picture of the author DEaFeYe
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[4935984].message }}
    • Profile picture of the author mojojuju
      Originally Posted by DEaFeYe View Post

      so, wouldn't it make more sense to use Perl to scrape for data since it has the most powerful regex engine available?

      Just sayin
      Sometimes what is most powerful is much more than what is required.
      Signature

      :)

      {{ DiscussionBoard.errors[4936164].message }}
      • Profile picture of the author lordspace
        Originally Posted by mojojuju View Post

        Sometimes what is most powerful is much more than what is required.
        haha. that's funny.
        Signature

        Are you using WordPress? Have you tried qSandbox yet?

        {{ DiscussionBoard.errors[4937179].message }}
    • Profile picture of the author CyberSEO
      Originally Posted by DEaFeYe View Post

      so, wouldn't it make more sense to use Perl to scrape for data since it has the most powerful regex engine available?

      Just sayin
      Why? PHP has Perl-Compatible regular expressions function set which is more than enough to write parsers (scrappers) of any complexity.
      Signature
      CyberSEO Pro - the ultimate AI autoblogging and RSS, XML, HTML, JSON and CSV import plugin for WordPress with support for OpenAI o1, Claude, Gemini, Llama 3, Midjourney, DALL-E, Stable Diffusion and more.
      {{ DiscussionBoard.errors[4938096].message }}
  • Profile picture of the author DEaFeYe
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[4939185].message }}
    • Profile picture of the author mojojuju
      It's grossly inaccurate to compare the use of PHP for parsing information to the use of a saw to pound nails into wood.

      Also, denouncing the use of PHP for such a trivial task simply because PHP is not best known for its regular expression features is in my opinion a dogmatic stance to take.
      Signature

      :)

      {{ DiscussionBoard.errors[4939393].message }}
  • Profile picture of the author mojojuju
    Ok then. I didn't know if you were being hyperbolic or if you just had no idea.

    Originally Posted by DEaFeYe View Post

    The analogy is simply to represent picking the proper tool for the job
    But you applied that analogy to a situation where there is no singular proper tool, and one where it would be difficult or silly to call any tool improper. You could accomplish this in PHP, perl, python, bash or whatever and at the end of the day it will not matter. Anything that is pragmatic is probably a proper tool.
    Signature

    :)

    {{ DiscussionBoard.errors[4939553].message }}
  • Profile picture of the author wasabi20
    Good tutorial for newbies !
    {{ DiscussionBoard.errors[5025915].message }}
  • Profile picture of the author Thomas
    Originally Posted by vick2011 View Post

    PHP - Website Data Scraping Tutorial

    When I started out in PHP this was one of the most important skills to have, because with this skill you can generate some good income writing useful scripts and web applications, so after being emailed and pm'd about 100000 times about help etc I had to delete one email address because it was overly spammed I decided to write a small tutorial on my programming forum.

    How to Scrape Specific Information from a Website using PHP - PHP Tutorials - Tutorials - CoderzSpot - A Programmers/Coders Forum
    Read more there ^
    There's nothing to read; it's a parked page.
    {{ DiscussionBoard.errors[5026336].message }}
  • Profile picture of the author wasabi20
    Yes the page are down now,
    {{ DiscussionBoard.errors[5032408].message }}
    • Profile picture of the author vandalais
      I also got a parked page. Does anyone have a link to how to scrap a site for a specific topic? If there is a WordPress plugin, that would be even better.

      Thanks,
      Keith
      {{ DiscussionBoard.errors[5041096].message }}
  • Profile picture of the author SeeSharp
    Just use google cache to see the contents of that site, still works.
    {{ DiscussionBoard.errors[5045349].message }}

Trending Topics