Git Product home page Git Product logo

py-scrapper's Introduction

py-scrapper

A python application to scrap & clone static website

Get started

Install dependencies

You need install python3 to run this script

pip3 install -r requirements.txt

Run

Example command

python3 app/main.py --url https://chungta.vn --output www --resource-threads=50 --threads=50 --force=true --download_resources=False

This will crawl https://chungta.vn and write output into www folder.

Commandline Args


usage: main.py [-h] [--url URL] [--output OUTPUT] [--threads THREADS]
               [--resource-threads RESOURCE_THREADS] [--force FORCE]
               [--download_resources DOWNLOAD_RESOURCES]

Website scrapper info.

optional arguments:
  -h, --help            show this help message and exit
  --url URL             Url of website
  --output OUTPUT       Output folder
  --threads THREADS     Number of threads to run to fetch html page in
                        concurences
  --resource-threads RESOURCE_THREADS
                        Number of threads to run to fetch resources just as
                        image, video
  --force FORCE         Remove history and download everything again
  --download_resources DOWNLOAD_RESOURCES
                        Download images, js, css, and other files

WIP

  • Restore session from database to duplication

py-scrapper's People

Contributors

samuraitruong avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.