DEV Community

RockyStrongo
RockyStrongo

Posted on

Twitter Bot posting Wikipedia Good Articles - Any feedback?

Hey guys! I am new here and as a first post I would like to present my recent project: @wikigoodarticle

It's a Twitter bot posting each day a random 'Good Article' from Wikipedia.

You can see here the official criteria for Good Articles: https://en.wikipedia.org/wiki/Wikipedia:Good_article_criteria

Even if I attended some programming classes at the university (some time ago...), I am a hobbyist/beginner mostly learning from StackOverflow.
So I would be happy to get some feedback from experienced progammers. Does this code looks ok to you according to standards? What could be improved ? Is there any huge mistake?!!

You can check out the code here: https://github.com/RockyStrongo/Wikipedia-Good-Articles-Bot

Is there a place in dev.to to submit your code to code reviews?

Some explanations:
High level, the program is using the wikipedia API to get articles listed as 'Good Articles'. Then it checks which articles were already posted by @wikigoodarticle to avoid duplicates.

If some images exist and have correct size and format, the program tweets an image along with the article title and URL.

The php code is scheduled to run once a day using IFTTT.

The program is using the php library twitteroauth (https://twitteroauth.com).


PS: don't forget to follow @wikigoodarticle and donate to wikipedia! https://donate.wikimedia.org/

Top comments (0)