Giter Club home page Giter Club logo

14_asyncio's Introduction

Ycrawler

Yet another simple parser to parse and save news from Ycombinator to disk. It has following options:

Short option Long option Description
-o --output-dir dir where to put parsed data. [default cwd]
-i --interval interval to check the main page in seconds [default 30]
-l --log-dir dir for logs [default ./ycrawler.log]
-d --debug turn on debug mode

Run

You should have installed Python 3.6 on your system.

$ git clone https://github.com/ligain/14_asyncio
$ cd 14_asyncio/
$ python3.6 -m venv .env
$ . .env/bin/activate
$ pip install -r requirements.txt
$ python crawler.py
[2018.09.15 22:27:16] run: I Started downloader worker
[2018.09.15 22:27:16] run: I Started crawling worker
[2018.09.15 22:27:16] run: I Start crawling from main page: https://news.ycombinator.com
...

Tests

$ cd 14_asyncio/
$ python3.6 tests.py

Project Goals

The code is written for educational purposes.

14_asyncio's People

Contributors

ligain avatar

Watchers

 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.