This is a program is for automatically post github repository/repos on social media automatically.
This is an extention or application of the Automate-Posting-App project.
Note: You ca check the posts on my fb page
- Social MediaPosting
- Template: Uses this template to post.
-
Mongodb : For storing all the data.
-
Libraries:
- python-dotenv : For handling data from
.env
file. - pymongo : For interacting with mongodb.
- requests : For handling requests.
- python-dotenv : For handling data from
- Clone the github repository
git clone https://github.com/coderooz/github-repository-poster.git
cd github-repository-poster
-
Start a virtual evironment (Optional)
This is an optional by recommended step.
- Create an
.venv
dir in project folder - Start the virtual environment.
-
For Windows:
.\.venv\Scripts\Acitvate.ps1
-
For macOS/Linix:
source .venv/bin/acitvate
-
- Check the acivation : There will appear
(venv)
infont of the path in the termnal.
- Create an
-
Install required libraries
pip3 install -r requirements.txt
-
Create a
.env
fileThis file will store all the necessary the values and
api_keys
MONGO_URI = 'mongodb://localhost:27017/' # mongodb url OWNER = 'githib-profile-id' # replace with your github id FACEBOOK_ACCESS_TOKEN = 'YOUR-FB-ACCESS-KEY' # replace with your access key FB_PAGE_NAME='FB Page Name'
Note: Do remove the
'
from the .env file that you make. -
Run
Run a
main.py
for test.py main.py
- Multiple Social Medias
- A ui-based user interface
Feel free to fork this repository and contribute by submitting a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for more details.
- Coderooz - Initial work - Ranit Saha
Thank You For Visiting this repository of mine.