Skip to main content

An updated bot that posts to Tumblr, based on your very own blog!

Project description

tumblrbot

PyPI

Description of original project:

4tv-tumblrbot was a collaborative project I embarked on with my close friend Dima, who goes by @smoqueen on Tumblr. The aim of this endeavor was straightforward yet silly: to develop a Tumblr bot powered by a machine-learning model. This bot would be specifically trained on the content from a particular Tumblr blog or a selected set of blogs, allowing it to mimic the style, tone, and thematic essence of the original posts.

This fork is largely a rewrite of the source code with similarities in its structure and process:

  • Updates:
  • Removed features:
    • Generation:
      • Removed clearing drafts behavior.
    • Training:
      • Removed exports that had HTML or reblogs.
      • Removed special word-replacement behavior.
      • Removed filtering by year.
    • Removed setup and related files.
  • Changed/Added features:
    • Generation:
      • Added a link to the blog's draft page.
      • Added error checking for uploading drafts.
    • Training:
      • Added the option to Download the latest posts from the specified blogs.
      • Added the option to remove posts flagged by the Moderation API.
      • Added the option to automatically Fine-Tune the examples on the specified base model.
      • Changed to now escape examples automatically.
      • Set encoding for reading post data to UTF-8 to fix decoding errors.
      • Added newlines between paragraphs.
      • Removed "ALT", submission, ask, and poll text from posts.
      • Improved the estimated token counts and costs.
    • Changed to Rich for output.
      • Added progress bars.
      • Added post previews.
      • Added color, formatting, and more information to output.
    • Created a guided utility for every step of building your bot blog.
    • Maid scripts wait for user input before the console closes.
    • Added comand-line options to override Settings options.
    • Added behavior to regenerate the default config.toml and env.toml if missing.
    • Renamed several files.
    • Renamed several Settings options.
    • Changed the value of several Settings options.
    • Added full type-checking coverage (fully importable from third-party scripts).

To-Do:

  • Add documentation.
  • Finish updating README.md.
  • Look into places more-itertools can help.

Please submit an issue or contact us for features you want to added/reimplemented.

Installation

  1. Install the latest version of Python:
    • Windows: winget install python3
    • Linux (apt): apt install python-pip
    • Linux (pacman): pacman install python-pip
  2. Install the pip package: pip install tumblrbot
    • On Linux, you will have to make a virtual environment.
    • Alternatively, you can install from this repository: pip install git+https://github.com/MaidThatPrograms/tumblrbot.git

Usage

If you cloned the repo, either:

  • Double-click __main__.py in the root directory.
  • Run python __main__.py in the root directory.

If you installed through Pip:

  • Run tumblrbot from anywhere.

More Information

  • WIP

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tumblrbot-1.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tumblrbot-1.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file tumblrbot-1.1.0.tar.gz.

File metadata

  • Download URL: tumblrbot-1.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for tumblrbot-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7c85aa61ede9d4d2531ef677c284888bab2e0d5d03c8f18da2e00cd7813163c6
MD5 e4bde14fbe532d75ad0c3f2e089f8086
BLAKE2b-256 21b2c3a5c309ab272d14dccb63decec0b597103c6ca144485fa7f4d88c1ed86c

See more details on using hashes here.

File details

Details for the file tumblrbot-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tumblrbot-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for tumblrbot-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52e3e8d41e131ccfc814b3d8a9e7657a241a65b1c49cea79b02e4ab451a6414b
MD5 700e27d3d2bd6dc764a90be4d5fd574d
BLAKE2b-256 723acb895013ee06c7cf664f838b02c9422c109db1728eed79ab32bdd7b6e926

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page