Jump to content

Search the Community

Showing results for tags 'scrape'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 3 results

  1. Hello all, I have a research task where I am suppose to write a script that will scrape the data and give an output in form of a json. The challenge I am facing is the table I am suppose to scrape from is unstructured (uneven pattern) how do we extract data from such a table I am putting down the table example here. I have tried various loops using simple_html_dom but failed (because of the table format), can someone guide me what should be the approach. I have added the html table here https://www.protectedtext.com/get-json-from-table-using-php-script password : 123. Any suggestion will be a help. Thanks in Advance!!!
  2. Can any kind person help with a sample code for the following scenario: I need to search/retrieve price from one (or several external pages) and display the lowest price BEFORE adding the same product to our non-profit webshop. Thanks in avance! 🌹
  3. Howdy, I just started experimenting with Goutte - found here on Github: https://github.com/f...ore-information I followed the examples almost exactly but here is my code anyways: <?php require_once 'goutte.phar'; use Goutte\Client; $client = new Client(); $crawler = $client->request('GET','http://www.cnn.com/'); $nodes = $crawler->filter('.error_list'); if ($nodes->count()) { // die(sprintf("Authentication error: %s\n", $nodes->text())); } // This part of the code I havent even changed yet being I can't get passed this problem :/ printf("Nb tasks: %d\n", $crawler->filter('nb_tasks')->text()); ?> Here is what is displayed on the page when running the php code: ????????G?? Fatal error: Class 'Goutte\Client' not found in /Applications/XAMPP/xamppfiles/htdocs/scrape.php on line 7. I have used PHP in the past but im a bit rusty, my apologies if it is something simple. I checked the Github issues and their doesn't appear to be any issues related to the problem I am currently having. I have the goutte.phar file in the same directory as the file with the code above so I am unsure why the fatal error is occurring on not finding the Client class? Thanks for the help!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.