Facebook marketplace bot that automatically removes and then uploads listings from CSV Files. You can define all of the information about the items and vehicles that will be posted automatically so you will save time removing and publishing them every single time. We are doing this to show the listings on the top of the marketplace or groups in order to be seen by more people and that leads to selling the items or vehicles faster.
- Python
- Selenium
- Pickle
- You can add multiple items or vehicles in the csv files that are in folder
csvs
. Note that for now the program only works with listing typeItem
orVehicle
- Added items or vehicles in csv files are first checked if they exist by the title. The existing items or vehicles are first being removed and then they are published again.
- The item or vehicle can also be posted to multiple groups that you can define in the csv files
- You will need to have Python and pip installed (on Mac they are already installed)
- You will need to install the following packages with
pip
:- Mac commands:
pip3 install selenium pip3 install webdriver-manager
- Linux commands:
pip install selenium pip install pickle-mixin pip install webdriver-manager
- Windows commands:
python -m pip install selenium python -m pip install pickle-mixin python -m pip install webdriver-manager
- Mac commands:
- Install the
Google Chrome
browser if you don't have it already - https://www.google.com/chrome/.
- Open folder where this project is saved on your local machine
- Open the
csvs
folder - Add items or vehicles in the
items.csv
andvehicles.csv
files. You can open these files with programs likeMicrosoft Excel
,LibreOffice Calc
, etc - Please note these things for the csv columns:
Photos Folder
column you will have to define only the folder path for the photos like this:- Windows
C:\Pictures
- Linux/Mac
/Users/myuser/Pictures
- Windows
Photos Names
column should only have the names of photos separated with this symbol;
like thisPhoto 1.JPG; Photo 2.png; Photo3.jpg
- Marketplace fields that you have to select an option like
Category
,Condition
,Vehicle Type
,Fuel Type
. You have to type the exact name of the option that you want to choose. Groups
column can have multiple groups and you will have to type their exact name and separate them by this symbol;
. Example -Group name 1; Group name 2; Group name
- Open terminal inside the main project folder
- Run main.py with this command:
- Windows / Linux
python main.py
- Mac
python3 main.py
- Windows / Linux
- The first time that you use the program, you will have to log in manually in the browser that have opened. After that the program will log in you automatically using the cookies from the first log in.