Coder Social home page Coder Social logo

habrdwnld's Introduction

habrArticleSrcDownloader

Скрипт python3 для скачивания исходников статей с habr.

Использование:

usage: main.py [-h] [-q] [-l] [-i] (-u USER_NAME_FOR_ARTICLES | -f USER_NAME_FOR_FAVORITES | -s ARTICLE_ID)

Скрипт для скачивания статей с https://habr.com/

options:
  -h, --help            show this help message and exit
  -q, --quiet           Quiet mode
  -l, --local-pictures  Использовать абсолютный путь к изображениям в сохранённых файлах
  -i, --meta-information
                        Добавить мета-информацию о статье в файл
  -u USER_NAME_FOR_ARTICLES
                        Скачать статьи пользователя
  -f USER_NAME_FOR_FAVORITES
                        Скачать закладки пользователя
  -s ARTICLE_ID         Скачать одиночную статью

Например:

./src/main.py -u habr
./src/main.py -f habr
./src/main.py -s 792190

Взять имя пользователя можно из ссылки профиля

Docker

Сборка образа:

docker build -t habrsaver .

Запуск контейнера:

docker run --rm --name habrsaver  \
            -v $(pwd)/article:/app/article \
            -v $(pwd)/favorites:/app/favorites \
            -v $(pwd)/singles:/app/singles \
            habrsaver -s 665254

habrdwnld's People

Contributors

dvjdjvu avatar riderius avatar amaderu avatar kright avatar allenhorst avatar codebyzen avatar aa-popkov 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.