Giter VIP home page Giter VIP logo

crawler_company_profiles's Introduction

crawler_company_profiles

This app created using Python with Scrapy framework.

This app crawling data with source url taken from company_index.json and created in special purpose for crawling data from urls provided on the file. There are about 3300s list of urls, and the download_delay configured at 5 s.

Prerequisite

Install python on your machine. You can use python or anaconda.

Install scrapy:

#if using pip:
pip install Scrapy

#if using anaconda
conda install -c conda-forge scrapy
#or
conda install -c conda-forge/label/cf201901 scrapy

Usage

Firstly download or clone this repo.

Download Delay

We need to be nice to any site, which we wanted to crawl, by setting a download delay in settings.py:

DOWNLOAD_DELAY = 5

Crawl

On your command line:

scrapy crawl sgmarine_profiles -o company_profiles.json -t json

Explanation:

The "sgmarine_profiles" is name of this crawler. you can change this name on /spiders/stack_spyder.py, in class StackSpider.

...
  name = "sgmarine_profiles"
  ...

The "company_profiles.json" is the output file name. You can change file format to other like a csv by change this part "-t json" to "-t csv"

Result:

The running time is depend on your "download_delay" setting, if it is set for 1s so it will be about 3300s running time (for 3300s url).

crawler_company_profiles's People

Contributors

sumbono avatar

Watchers

James Cloos avatar

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.