Skip to content

Scrapy/Django/MariaDB/Docker - an example to scrap from iHerb

Notifications You must be signed in to change notification settings

makotunes/scrapy-django-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrap2DB Docker Service Example

Scraping web site to save to DB in Docker

This sample uses iHerb as target site.

Main Dependency

  • Docker

  • Docker Compose

  • MariaDB

  • Python

  • Django

  • Scrapy

Installation

docker-compose up -d --build

Run

./start.sh

Access to DB by Django Admin

http://localhost/admin

Default user is

USERNAME: root
PASSWORD: initpass

Access to DB

http://localhost/admin

Configuration

Specify Environmental Valiable by docker-compose for Scrapy Configuration following

  • SCRAPY_START_INDEX: 22419
  • SCRAPY_NUM_ITEMS: 1000
  • SCRAPY_CONCURRENT_ITEMS: 10000
  • SCRAPY_CONCURRENT_REQUESTS: 2
  • SCRAPY_DOWNLOAD_DELAY: 8.0

About

Scrapy/Django/MariaDB/Docker - an example to scrap from iHerb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages