Giter Site home page Giter Site logo

alibaba_amazon_scraping's Introduction

Aliama (Scraping Alibaba and Amazon)

What is Aliama ?

It is a platform for easy scraping of amazon item price, weight and many more.

Features

  • Collect AMSIN of items from amazon
  • Collect the product information from asin code.
  • Add options to add proxy during scraping.
  • create random proxy scraper to automate the scraping with different proxies.

Using the code.

  • clone the Repository
  • Download Chrome WebDriver and Firefox webdriver
  • Unzip and Make both Driver Executable and move them to system path for ubuntu move them to /usr/local/bin
#without proxy

from amal import Alibaba, Amazon

scraper_ins = Amazon(m_item)
#  to get the item code from amazon and alibaba
scraper_ins.get_item_code()
# scraped results
product_lists = scraper_ins.scrape()
#Using proxy

# create proxy generator function
from amal import Alibaba, Amazon
import random
import socket

def proxy_generator():
    username = 'proxy-username-id'
    password = 'prxy-pass'
    port = 22225
    super_proxy = socket.gethostbyname('zproxy.domain.io')
    url = "http://%s-session-%s:%s@"+super_proxy+":%d"
    while True:
        session_id = random.random()
        yield url % (username, session_id, password,port)


scraper_ins = Amazon(m_item, proxy_generator= proxy_generator)
#  to get the item code from amazon and alibaba
scraper_ins.get_item_code()
# scraped results
product_lists = scraper_ins.scrape()

Finally

That's it . Finally Done!

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.