24 votes

TAPS, a script that posts topics to Tildes, has been updated to no longer require a web browser or Selenium

I'm not going to post a topic or comment every time I update this silly thing, but this was a pretty big change that I felt necessitated a new topic.

Link to the script

Tildes Automated Posting Script, or TAPS, is a Python script that posts topics to Tildes. Using the script's configuration file, you can define which account you want the topic to be posted under, the group the topic should be posted to, the link for that topic (if any), the comment or text for that topic (if any), as well as what tags the topic should have (if any, but highly encouraged).

It also now works with accounts that use two-factor authentication.

I wrote this because every Monday and Friday I post topics to ~talk at 11:00 AM. However, I'm a forgetful person, sometimes wake up late, and will be starting classes soon, so I thought it would be nice to have a script that I can schedule, using something like cron, to post those topics for me.

The documentation should explain everything that can be done with the script, but anyone with questions or issues can message me for help.

With these recent changes, the script no longer requires a web browser or Selenium. It should be able to run on pretty much anything. I'll be using the script on a Raspberry Pi Zero W to post my recurring topics.

I wanted to have this update posted Sunday night, but at the last minute I decided to use @deing's tildee.py library, which made things a lot easier. I finsihed rewriting the script's code last night and updated the documentation today.

3 comments

  1. Deimos
    Link
    Very nice, so much simpler! I'm not sure how much effort you want to spend on this overall, but if you want to improve it a little more, a good next step would probably be making a class for the...

    Very nice, so much simpler!

    I'm not sure how much effort you want to spend on this overall, but if you want to improve it a little more, a good next step would probably be making a class for the topics, with default values in the __init__ constructor. That would let you make a lot of the logic simpler instead of needing all the if/else checks in the post_topic() method.

    10 votes
  2. unknown user
    Link
    Great work, thanks! You might wanna add a requirements.txt to this, the steps would be: generate a virtualenv activate it install tildee run pip freeze > requirements.txt Granted you only have one...

    Great work, thanks!

    You might wanna add a requirements.txt to this, the steps would be:

    • generate a virtualenv
    • activate it
    • install tildee
    • run pip freeze > requirements.txt

    Granted you only have one dep as of now, but whatever the amount grows to as time goes by, with this people can easily run pip install -r requirements.txt and get going with the script.

    9 votes
  3. acdw
    Link
    This might come in very handy with posting the "What are you reading these days?" threads, thanks for updating it!

    This might come in very handy with posting the "What are you reading these days?" threads, thanks for updating it!

    3 votes