Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablolec/insta_newspaper
CLI to download old newspaper front pages and post it on Instagram.
https://github.com/pablolec/insta_newspaper
bot cli instagram python
Last synced: 9 days ago
JSON representation
CLI to download old newspaper front pages and post it on Instagram.
- Host: GitHub
- URL: https://github.com/pablolec/insta_newspaper
- Owner: PabloLec
- License: mit
- Created: 2021-02-26T13:56:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T08:01:13.000Z (4 months ago)
- Last Synced: 2024-10-12T18:43:38.457Z (24 days ago)
- Topics: bot, cli, instagram, python
- Language: Python
- Homepage:
- Size: 1.87 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
:camera_flash: Check out this repo in action! :camera_flash:
# Insta Newspaper [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
Insta Newspaper is a CLI to download old newspaper front pages and post it on Instagram.
It was done as a personal project but can easily be adapted for your needs.
## Installation
The CLI part of the project is based on [typer](https://github.com/tiangolo/typer "typer"), cross-OS compatibility should not be an issue.
Regarding the Instagram posting process, it relies on Selenium with Gecko driver. See the [official repo](https://github.com/mozilla/geckodriver "geckodriver repository") for installation, on most linux distros you could probably use the package `firefox-geckodriver`.#### Install from source:
```
git clone https://github.com/pablolec/insta_newspaper
cd insta_newspaper
pip install .
```**To finish installation** mind modifying `config.yaml.example` with your own parameters and renaming it `config.yaml`.
## Demo
## Usage
- `insta_newspaper new_post -n SELECTED_NAMES [-h]`
Main command to scrap image(s) and post it on IG. Just replace [SELECTED_NAMES] by one or more newspaper names. Names must be separated by spaces, you can also only input part of the names, the utility will look inside reference for matches.
Add `-h` to start a headless Gecko driver. No Firefox window will be displayed.
- `insta_newspaper save_cookies`
A Firefox window will be displayed and you will be prompted to log in manually to Instagram. Then, you can press any key in terminal to close Firefox and store your cookies.
- `insta_newspaper login`
Simply opens a Firefox window and automatically logs you in. This may be useful to manage your account for example.