This project includes two Python scripts utilizing Selenium and BeautifulSoup to automate data collection and following on Pixiv.
-
Following Data Collection Script: This script collects data on users you follow on Pixiv, including names and profile links. It saves the data in JSON format with the last processed page number, allowing it to resume from the last page if interrupted.
-
Auto-Follow Script: This script loads a JSON file with user links and automatically navigates to each profile, clicking the "Follow" button if available. It allows batch following of users from your collected following data.
-
Clone the repository:
git clone https://github.com/Azaki21421/PixivFollowingPars.git cd PixivFollowingPars
-
Install the required dependencies:
pip install -r requirements.txt
-
Ensure you have Google Chrome and ChromeDriver installed, matching your Chrome version.
- Run
pixiv_following_scraper.py
:python pixiv_following_scraper.py
- Enter your Pixiv user ID when prompted.
- Log in to your Pixiv account in the opened browser window and click "Continue" once logged in.
- The script will browse your following pages, collecting user info on each. If interrupted, it saves progress and resumes from the last processed page.
- Data is saved to
pixiv_data.json
in the following format:{ "users": [ {"name": "User1", "link": "https://www.pixiv.net/en/users/User_id"}, {"name": "User2", "link": "https://www.pixiv.net/en/users/*some number*"} ], "last_page": 5 }
- Run
pixiv_auto_follow.py
:python pixiv_auto_follow.py
- Ensure
pixiv_data.json
with user links exists. - Log in to your Pixiv account in the opened browser window and click "Continue" once logged in.
- The script navigates through each profile link and clicks the "Follow" button on each profile, if the button is available.
- Python 3.8+
- Selenium
- BeautifulSoup4
- requests
- Google Chrome and matching ChromeDriver
Install dependencies using pip install -r requirements.txt
.
This project is licensed under the GNU General Public License (GPL). See LICENSE for more details.