GithubHelp home page GithubHelp logo

hugovk / wotdbot Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 91 KB

Word of the day robot for tweeting a word of the day

Home Page: https://twitter.com/fiwotd

Python 100.00%
twitter bot twitterbot wotd word of the day word-of-the-day finnish

wotdbot's Introduction

wotdbot

GitHub Actions status Python: 3.6+ Code style: Black

Word-of-the-day robot for tweeting a word of the day.

First you need a list of Wiktionary words. There's a Finnish one in the data directory. It was made like this

Download enwiktionary-20140118-pages-articles-multistream.xml.bz2 (484.5M) or newer from the Wiktionary data dumps and unzip. Then run:

python wotdbot_extract_words.py > data/finnish.txt

For other languages, change "Finnish" in the if and "fi" in the regex.

Then run like from a scheduled task/crontab:

python wotdbot.py --wordlist data/finnish.txt --yaml data/wotdbot.yaml --no-web

See an example at https://twitter.com/fiwotd

wotdbot's People

Contributors

cozydoomer avatar hugovk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cozydoomer

wotdbot's Issues

Escaping escapes from Tweetian

For example:

täyttyä

https://twitter.com/fiwotd/status/456333690251907072

has a link like this:

https://en.wiktionary.org/wiki/t%C3%A4ytty%C3%A4#Finnish

which shows like this in Chrome:

https://en.wiktionary.org/wiki/täyttyä#Finnish

but when opening in Opera Mobile (via Tweetian) it uses this URL:

https://en.wiktionary.org/wiki/t%25C3%25A4ytty%25C3%25A4#Finnish

Bad title

Sorry: the page title you requested is not supported by our software. It is possible that the entry you are looking for is below; if not, please request it or add it yourself.

Something is replacing the escaping the percent symbol to %25, when really the percent is already part of an escape sequence.


If I copy and paste the URL into Opera Mobile, Opera Mini or Web it works, so this is probably a Tweetian problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.