Skip to main content

Crawl your personal favorite images, photo albums, comics from website. Support pixiv, yande.re for now.

Project description

FavoritesCrawler

Build Version

Crawl your personal favorite images, photo albums, comics from website.

Plan to support:

  • pixiv.net (crawl your bookmarks for illust)
  • yande.re (crawl posts that you voted)
  • immpic.com (crawl your favorites for albums)
  • instagram.com
  • nhentai.net

Already support:

  • pixiv.net (must login), Thanks for project PixivPy.
  • yande.re (must login, only input your username)
  • lmmpic.com (must login)

Requirements

  • Python3.6+

Install

pip install favorites_crawler

Config Proxy (Optional)

# on Windows
set https_proxy=http://localhost:8080  # replace with your proxy server
# on Liunx/macOS
export https_proxy=http://localhost:8080

Login

favors login [-h] {pixiv,yandere,lemon}

Login Pixiv

Thanks for @ZipFile Pixiv OAuth Flow

  1. run command
    favors login pixiv
    
  2. input your user_id (Access your pixiv personal page, copy from address bar), after press Enter, Pixiv login page will open in browser.
  3. Open dev console (F12) and switch to network tab.
  4. Enable persistent logging ("Preserve log").
  5. Type into the filter field: callback?
  6. Proceed with Pixiv login.
  7. After logging in you should see a blank page and request that looks like this: https://app-api.pixiv.net/web/v1/users/auth/pixiv/callback?state=...&code=.... Copy value of the code param into the prompt and hit the Enter key.

Login Yandere

  1. run command:
    favors login yandere
    
  2. input your username and hit the Enter key.

Login Lmmpic

  1. run command:
    favors login lemon
    
  2. input your username and hit the Enter key.
  3. input your password and hit the Enter key.

Login NHentai

  1. Open nhentai on browser and login.
  2. Use "Get cookies.txt" extension download cookie file.
  3. Copy cookie file to {user_home}/.favorites_crawler.

Crawl

Crawl Pixiv

Before run this command, make sure you are already login.

favors crawl pixiv

Crawl Yandere

Before run this command, make sure you are already login.

favors crawl yandere

Crawl Lmmpic

Before run this command, make sure you are already login.

favors crawl lemon

Crawl NHentai

Before run this command, make sure you are already login.

favors crawl nhantai

Crawl All Support Site

favors crawl all

Config

config file locate on {your_home}/.favorites_crawler/config.yml.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

favorites_crawler-0.0.5.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

favorites_crawler-0.0.5-py3-none-any.whl (17.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page