Skip to content

mukhbit0/Auto_Posting_on_Pinterest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Posting on Pinterest

Pinterest Logo

This script automates the process of posting images to Pinterest. I created this for my Pinterest account CogitoAnime.

Features

  • Automatically uploads images to Pinterest
  • Adds titles, descriptions, and destination links to pins
  • Selects the appropriate board and section
  • Uses a persistent Chrome session to avoid repeated logins

Requirements

  • Python 3.6+
  • undetected-chromedriver
  • selenium

Installation

  1. Clone the repository or download the script files.

  2. Navigate to the project directory.

  3. Install the required packages using the following command:

    pip install -r requirements.txt

Configuration

Required

  • IMAGE_FOLDER: Path to the folder containing your images.
  • TITLE: Title for the Pinterest pins.
  • DESCRIPTION: Description for the Pinterest pins.
  • BOARD_NAME: Name of the Pinterest board.
  • USER_DATA_DIR: Path to your Chrome user data directory.

Optional

  • SECTION_NAME: Name of the section within the board (if applicable).
  • LINK: Destination link for the Pinterest pins.

Usage

  1. Ensure that the required configurations are set in the script.

  2. Run the script using the following command:

    python pin.py
  3. The script will open a Chrome browser and navigate to Pinterest.

  4. If this is the first time running the script, you will be prompted to log in to Pinterest. After logging in, press Enter to continue.

  5. The script will process up to 20 images from the specified folder, uploading them to Pinterest and adding the necessary details.

  6. After processing the images, you will be prompted to publish the pins manually. Press Enter to continue.

  7. The script will save the processed images to the log file and exit.

Contributing

If you would like to contribute to this project, please email mukhbit000@gmail.com.

License

This project is licensed under the MIT License. See the LICENSE file for details.

☕ Support My Work

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages