
MyFigureCollection Automation Project
This repository contains a Python script that automates the process of adding entries to a user's MyFigureCollection.net account using Selenium WebDriver.
- Automates the sign-in process to MyFigureCollection.net
- Reads data from a JSON file and processes it
- Navigates to the "Add Entry" page and fills out the form based on the processed data
- Supports saving and loading login cookies to minimize the need for signing in repeatedly
Before running the script, ensure that you have the following installed on your system read more about installing requirments below:
- Python 3.x
- Selenium WebDriver
- Google Chrome WebDriver
- pandas
- BeautifulSoup
- lxml
- Clone the repository or download the project files.
- Navigate to the project directory in the terminal.
- Install the required Python packages:
pip install -r requirements.txt
- Download the Chrome WebDriver and place it in your system's
PATH
.
- Open the
config.py
file and update the following variables with your own MyFigureCollection.net account information:
USERNAME = 'your_username'
PASSWORD = 'your_password'
- A .JSON file has is already provided that specifies what you need to add. However you can also create your own, .JSON file named
data.JSON
in the project directory, containing the information you want to add to your collection. The JSON file should have the following columns: When you run thescript.py
the scraper will automatically create a json for each entry.
- Item Type (e.g., 'goods', 'figures', etc.)
- Display Type (e.g., 'on shelves', 'on walls', etc.)
- Adult Content (e.g., 'safe', 'nsfw', or 'nsfw+')
- Image Filename (if applicable)
id | root | category | content_level | image_name | origin | characters | companies | artists | classification |
---|---|---|---|---|---|---|---|---|---|
0 | |||||||||
1 | |||||||||
2 |
- Run the
savecookies.py
script:
python savecookies.py
-
The script will automatically sign in to your account and saves login cookies to a file named
cookies.pkl
. Once you have successfully logged in and saved the cookies, you can use them for future sessions by loading them before running that script anymore. -
Enter all links when corresponding artists in scraperGOT.py
-
Run script.py, should open a new chrome window and add each entry link given
-
Sit back and relax!
If you'd like to contribute to this project, feel free to fork the repository, make changes, and submit a pull request. We appreciate any help in improving the project!
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.