Skip to content

Doomlab7/ArchiveboxTelegramBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArchiveboxTelegramBot-Docker

OG instructions below but I changed a couple things

  1. the script assumes that the database and cookies are in /data - so in docker main.py is in /app and then you should volume mount in the directory with the cookies and db to /data inside the container running the bot

ArchiveboxTelegramBot

A simple Telegram bot to send urls from a Telegram chat to Archivebox.

Requirements

Archivebox
Python-telegram-bot module

How to use

  1. Download the script and put it in the archivebox directory containing the index.sqlite3 database.
  2. Go to your Archivebox webpage and export the cookies to a cookies.txt file and put it in the same directory. Chrome extension
  3. Paste your ArchiveBox url on line 6.
  4. Place the chatids of the chats on which you want the bot to respond to on line 7.
  5. Create a telegram bot and paste the token on line 8
  6. Go to your Archivebox and add an url. While you do so open the dev console of your browser and find the csrfmiddlewaretoken in the request header section.
  7. Paste the csrfmiddlewaretoken on line 9.
  8. Now run the bot. Every url you send to the bot will be archived by Archivebox.

Commands

/help Show info about bot.
/get <url> Get latest archived version of the url from Archivebox.
/get all <keyword> Get all urls in archivebox containing keyword in part of the url.

About

A simple Telegram bot to archive urls in Archivebox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.8%
  • Dockerfile 2.2%