Skip to content

Commit

Permalink
Release v3.3.0: Add support for downloading account content and bug f…
Browse files Browse the repository at this point in the history
…ixes (#123)

## v3.3.0 - 2024-12-21
### What's Changed
**Full Changelog**: v3.2.0...v3.3.0 by @obervinov in #123
#### 🐛 Bug Fixes
* small code formatting improvements
#### 🚀 Features
* add new table `accounts` to the database for storing account public data
* add the feature to retrieve the entire list of account posts and add it to the queue
* #117
  • Loading branch information
obervinov authored Dec 21, 2024
1 parent 93582bb commit 44a1446
Show file tree
Hide file tree
Showing 13 changed files with 588 additions and 737 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).


## v3.3.0 - 2024-12-21
### What's Changed
**Full Changelog**: https://github.com/obervinov/pyinstabot-downloader/compare/v3.2.0...v3.3.0 by @obervinov in https://github.com/obervinov/pyinstabot-downloader/pull/123
#### 🐛 Bug Fixes
* small code formatting improvements
#### 🚀 Features
* add new table `accounts` to the database for storing account public data
* add the feature to retrieve the entire list of account posts and add it to the queue
* [Feature request: move user rights checking from `if` to native `decorators`](https://github.com/obervinov/pyinstabot-downloader/issues/117)


## v3.2.0 - 2024-11-21
### What's Changed
**Full Changelog**: https://github.com/obervinov/pyinstabot-downloader/compare/v3.1.3...v3.2.0 by @obervinov in https://github.com/obervinov/pyinstabot-downloader/pull/116
Expand Down
332 changes: 177 additions & 155 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyinstabot-downloader"
version = "3.2.0"
version = "3.3.0"
description = "This project is a Telegram bot that allows you to upload posts from your Instagram profile to clouds like any WebDav compatible cloud storage."
authors = ["Bervinov Oleg <[email protected]>"]
maintainers = ["Bervinov Oleg <[email protected]>"]
Expand All @@ -26,7 +26,7 @@ webdavclient3 = "^3"
prometheus-client = "^0"
logger = { git = "https://github.com/obervinov/logger-package.git", tag = "v2.0.0" }
vault = { git = "https://github.com/obervinov/vault-package.git", tag = "v4.0.0" }
users = { git = "https://github.com/obervinov/users-package.git", tag = "v4.0.1" }
users = { git = "https://github.com/obervinov/users-package.git", tag = "v4.0.2" }
telegram = { git = "https://github.com/obervinov/telegram-package.git", tag = "v3.0.0" }

[tool.poetry.group.dev.dependencies]
Expand Down
489 changes: 184 additions & 305 deletions src/bot.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/configs/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# 'button_title': 'role'
ROLES_MAP = {
'Posts': 'posts',
'Account': 'account',
'Reschedule Queue': 'reschedule_queue',
}

Expand Down
15 changes: 15 additions & 0 deletions src/configs/databases.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@
"state VARCHAR(255) NOT NULL DEFAULT 'processed'"
]
},
{
"name": "accounts",
"description": "The table stores the instagram account public information",
"columns": [
"id SERIAL PRIMARY KEY, ",
"username VARCHAR(50) UNIQUE NOT NULL, ",
"pk NUMERIC NOT NULL, ",
"full_name VARCHAR(255) NOT NULL, ",
"media_count INTEGER NOT NULL, ",
"follower_count INTEGER NOT NULL, ",
"following_count INTEGER NOT NULL, ",
"cursor VARCHAR(255), ",
"last_updated TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP"
]
},
{
"name": "migrations",
"description": "Table to store the migration history of the database",
Expand Down
4 changes: 4 additions & 0 deletions src/configs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"text": "{0} To get a backup copy of the list of posts, send links to posts in a list (each new link with a new message line). This message will be automatically split into a number of messages equal to the number of links and processed in the order of the queue.\n {1} Example:\n<code>https://www.instagram.com/p/QwEr_tY1234\nhttps://www.instagram.com/p/QwEr_tY1235\nhttps://www.instagram.com/p/QwEr_tY1236</code>",
"args": [":information:", ":link:"]
},
"help_for_account": {
"text": "{0} To get a backup copy of the list of posts from the account, send a link to the account. The bot will automatically collect all posts from the account and process them in the order of the queue.\n {1} Example:\n<code>https://www.instagram.com/username</code>",
"args": [":information:", ":link:"]
},
"help_for_reschedule_queue": {
"text": "{0} <b>To reschedule the processing of messages in the queue, simply send a list of messages with a modified processing time.\nfor example:</b>\n<code>q1wRty12345: scheduled for 2021-12-31 23:59:59\nq1wRty12346: scheduled for 2021-12-31 23:59:59\nq1wRty12347: scheduled for 2021-12-31 23:59:59</code>",
"args": [":information:"]
Expand Down
Loading

0 comments on commit 44a1446

Please sign in to comment.