Coder Social home page Coder Social logo

kkamara / amazon-scraper Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 4.98 MB

:cityscape: (Live Link) (2022) Navigates to amazon, searches for samsung phones and pulls the title and price data. I highly recommend working with Linux (including virtual machines) or MacOs.

Home Page: https://github.com/kkamara/amazon-scraper/actions

License: BSD 3-Clause "New" or "Revised" License

Shell 1.07% Makefile 0.67% PHP 89.92% Blade 7.38% Dockerfile 0.95%
laravel selenium web-scraping

amazon-scraper's Introduction

This project is now deprecated. Please use PHP Scraper.

selenium-py.png

Amazon Scraper API

(2022) Navigates to amazon, searches for samsung phones and pulls the title and price data. I highly recommend working with Linux (including virtual machines) or MacOs.

Important note:

Before you try to scrape any website, go through its robots.txt file. You can access it via domainname/robots.txt. There, you will see a list of pages allowed and disallowed for scraping. You should not violate any terms of service of any website you scrape.

Proven in a production environment

Getting up and running on amazon ec2.

Requirements

Installation

cp .env.example .env
touch database/database.sqlite
composer i
make dev
# optional
# make backend-migrate
# (optional)
# npm install
# npm run dev

Using Docker?

docker build -t laravel-docker-aws .
docker run -it -p 8001:80 laravel-docker-aws

Usage

Update the command at ./app/Console/Commands/BrowseAmazon.php

php artisan browse:amazon

BrowserInvoker.php

Browser.php

Adding a new command

php artisan make:crawler crawler_test

Browser Testing

  alias sail='vendor/bin/sail'
  sail dusk

Mail Server

docker-mailhog3.png

Mail environment credentials are at .env.

The mailhog docker image runs at http://localhost:8025.

Misc

See php scraper.

See php reactjs boilerplate.

See python amazon scraper 2.

Using Laravel dusk outside of tests.

Running ChromeDriver and Selenium in Python on an AWS EC2 Instance.

The Makefile for this project contains useful commands for a Laravel application and can be found at laravel-makefile.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

BSD

amazon-scraper's People

Contributors

kkamara avatar

Stargazers

Manoj Halugona avatar Burak Sormageç avatar

Watchers

 avatar

amazon-scraper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.