pawneetdev / scraper

Scraper in PHP that using cURL. Scraps flipkart, jabong and amazon and can export as JSON or XML


scraper

Scraper in PHP that using cURL. Scraps flipkart and amazon and can export as JSON or XML

This is a PHP script to scrap data from flipkart and amazon. Scraping data is not legal or advised. This is just for educational purpose.

Clone the repository in your html folder if you are using apache. If you are using XAMPP, clone it in your htdocs directory.

Now, run your local server and open http://localhost/scraper/display.php in your browser. You will see a search bar, search for items you want to fetch like "mobile".

You can download JSON and XML by clicking on the buttons provided.

Contributors pawneetdev

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... <head> <link rel = "stylesheet" href = "style.css"> </head> <center><form action = "display.php" method="get"> <input class = "search" type = "text" name = "search" placeholder = "Search here...."> <input class = "search_btn" type = "submit" value = "Search"> </form> </center>

Statistics

Average successful run time: half a minute

Total run time: half a minute

Total cpu time used: less than 5 seconds

Total disk space used: 39.2 KB

History

  • Manually ran revision 768ed82a and completed successfully .
    nothing changed in the database
  • Manually ran revision 7cec9e25 and failed .
    nothing changed in the database
  • Created on morph.io

Scraper code

PHP

scraper / scraper.php