Giter VIP home page Giter VIP logo

pppixiv's Introduction

MGMCN-typing-svg

MGMCN

🤪  Hi there 👋
  • 😄 I’m currently working on P2P system.
  • 😍 I am an enthusiast of web crawling technology.
  • 🤩 I enjoy contributing to open source libraries.
🔨  Programming languages used

Most of the programming languages were learned when I was an undergraduate. Some of these programming languages I use regularly and some I rarely use anymore.

Level Languages
Frequently used Python Go
Occasionally used Java JavaScript Shell Script
Rarely used C C++ Swift
🔧  Other technologies used
Type Technologies
Framework Django Flask Hugo Scrapy Colly
Database MySQL SQLite
Middleware RabbitMQ
Container technology Docker Kubernetes
Test Selenium
CI/CD GitHub Actions Jenkins
Cloud service Alibaba Cloud AWS Cloudflare Next Cloud Netlify Vercel
Embedded device Raspberry Pi Arduino
🔥  Contributions to the open source community
Repository Stars Forks Contributions
go-libp2p stars forks #1661pr
ProxyPool stars forks #186pr#187pr
get-pixivpy-token stars forks #64pr#67pr
advanced-go-programming-book stars forks #635pr
cmd-wrapped stars forks #22pr
hugo-PaperMod stars forks #1416pr
👥  Co-developed
Repository Stars Forks
pppixiv stars forks
tg-dumb-bot stars forks
🧸  Useless toys
Repository Summary
bilibiliWordCloud Self-use tool for generating animation short comment keywords
deleteHelper Self-use deleteHelper
FastCV Help beginners build their personal cv with github.io
fastDownloader Self-use crawler downloader
hugoThemesRanking Self-use tool to quickly retrieve hugo themes ranked by stars
mazebot Q-learning demo
P2P-File-Sharing LAN File Sharing Tool
⚙️  GitHub Analytics

pppixiv's People

Contributors

mgmcn avatar rio98 avatar weiqizhang1999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pppixiv's Issues

About download link

Note that the download link you get from our getIllustDownloadUrl api must be downloaded by our program's pixivAPI.
Actually ,this pppixiv project is only a sub-project of the tg-bot project.
But we will continue to develop new features for this project.
Plz stay tuned!

Set the token to be refreshed every hour

The first time we log in to pixiv, we are given a token that expires in 3600 seconds, and we need to refresh it before it expires, which means we don't have to wait until it expires to log in to pixiv again to get the token, which is slow, but refreshing it is fast.

A bug may occur when the file name is duplicated

A bug may occur when multiple requests download a file with the same name at the same time.(although the file contents are different)
Solution, add a random number to the file name!
But not graceful!

Random antonym & Zoo girl tags

  1. When requesting illustrations with a specific tag, there is a 20% chance that it will return illustrations with antonym tags
  2. Add a shortcut for requesting tags from "Zoo girls", i.e., "{} girl".format(np.random.choice([cat, fox, wolf, ...]))

gppt needs to be fixed

2023-09-02 13:38:54 [2023-09-02 04:38:54,754] DEBUG in main: =====================================================================================
2023-09-02 13:38:54 [2023-09-02 04:38:54,754] DEBUG in main: Authorized on pixiv account [email protected]. Please wait for authentication.
2023-09-02 13:39:15 Traceback (most recent call last):
2023-09-02 13:39:15   File "/APP/main.py", line 26, in <module>
2023-09-02 13:39:15     success, msg = app.run_services()
2023-09-02 13:39:15                    ^^^^^^^^^^^^^^^^^^
2023-09-02 13:39:15   File "/APP/app.py", line 21, in run_services
2023-09-02 13:39:15     success, msg = self.myPixiv.start_pixiv_session()
2023-09-02 13:39:15                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-02 13:39:15   File "/APP/services/pixiv.py", line 225, in start_pixiv_session
2023-09-02 13:39:15     success = self.get_token()
2023-09-02 13:39:15               ^^^^^^^^^^^^^^^^
2023-09-02 13:39:15   File "/APP/services/pixiv.py", line 54, in get_token
2023-09-02 13:39:15     res = self.pixivTokenApi.login(headless=True, username=self.pixivUsername, password=self.pixivPassword)
2023-09-02 13:39:15           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-02 13:39:15   File "/usr/lib/python3.11/site-packages/gppt/_selenium.py", line 93, in login
2023-09-02 13:39:15     self.__try_login()
2023-09-02 13:39:15   File "/usr/lib/python3.11/site-packages/gppt/_selenium.py", line 163, in __try_login
2023-09-02 13:39:15     el = self.driver.find_element(
2023-09-02 13:39:15          ^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-02 13:39:15   File "/usr/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 830, in find_element
2023-09-02 13:39:15     return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
2023-09-02 13:39:15            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-02 13:39:15   File "/usr/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
2023-09-02 13:39:15     self.error_handler.check_response(response)
2023-09-02 13:39:15   File "/usr/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
2023-09-02 13:39:15     raise exception_class(message, screen, stacktrace)
2023-09-02 13:39:15 selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//button[@type='submit'][contains(text(), 'ログイン') or contains(text(), 'Login') or contains(text(), '登录') or contains(text(), '로그인') or contains(text(), '登入')]"}

Provide an interface to download illustrations from pixiv

Give an illustration id, and use this id to get a download link for this image.

Currently getIllustListByUid can only get the url of all illustrations for a specific user. because these illustrations may involve r18 content, the download link is not given directly. Instead, it is a preview link that requires permission.

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.