yorubaname / yorubaname-twitter-bot Goto Github PK
View Code? Open in Web Editor NEWA twitter bot that tweets yoruba names.
A twitter bot that tweets yoruba names.
The current implementation for picking a name from the YorubaName dictionary and tweeting it is not efficient.
Right now, the bot follows the following steps to tweet:
Having to query the API for 5000 names, only to pick one to tweet is very inefficient.
Another thing being omitted is the status of the name to be tweeted. Currently, there is no check in place to ensure that the randomly selected name is actually in a PUBLISHED state. Only names in PUBLISHED state should be tweeted as those are the ones publicly available in the dictionary.
This GitHub issue is to note this short-comings and to provide a fix by implementing a more efficient way to retrieve name to be tweeted while taking into consideration the published state.
The current API of YorubaName does not make it straightforward to randomly pick a name, but a suggestion that would be more efficient than the current implementation would be to:
count
query parameter on the /v1/names
endpoint, use a combination of the following supported query parameters: page
, count
and state
to build a more efficient query, eg:v1/names?count=[random count with a reasonable upper limit]&page=[random selected page number]&state=PUBLISHED
Check the YorubaName Swagger API page to explore the available endpoints.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.