Giter VIP home page Giter VIP logo

ex_spider's Introduction

ex_spider

自用exhentai爬虫脚本,爬取搜索结果以及本子的元数据, 并整理有磁力链接的本子列表

脚本环境

  • python: 3.12.2
  • MongoDB 7.0.7 Community
  • pymongo: 4.6.3
  • requests: 2.31.0

各脚本用途

  • ex_spider_list.py

    • 根据搜索url获取本子列表, 每页的url存在page_urls.csv中, 每个本子的url存在loli_list.csv
    • 需修改搜索链接url/cookies/代理proxies, 自行修改工作目录
    • page/number初始是0, 如果程序中途执行失败, 将page_urls.csv最后一个序号填到page里, 将loli_list.csv最后一个序号填在number里, 将page_urls.csv最后一个url填到url
  • ex_spider_one.py

    • 获取单个本子的元数据, 存到mongodb里
    • 需修改cookies/proxies, 自行修改工作目录
    • 如果程序中断, 修改start的值为已爬取本子数, tqdm的总数自行修改(删掉也行)
  • deduplicate.py

    • 数据库根据gid去重
  • add_missing.py

    • 数据库比对loli_list.csv找出缺失, 并重新爬取数据
  • get_magnet.py

    • 将数据库中具有磁力链接的本子挑出来, 生成表格loli_magnet.csv

ex_spider's People

Contributors

fnsflm avatar

Watchers

 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.