flatpickles / random_wiki Goto Github PK
View Code? Open in Web Editor NEWTweets the first sentence of a random Wikipedia article, plus a shortened link, several times a day.
Home Page: http://twitter.com/random_wiki
Tweets the first sentence of a random Wikipedia article, plus a shortened link, several times a day.
Home Page: http://twitter.com/random_wiki
random_wiki Matt Nichols random_wiki is a Python script which tweets the first sentence of a random Wikipedia article and a shortened link to said article several times a day. Using several rules, the script attempts to generate an aesthetic tweet (avoiding common garbage from in-process pages, uncommon formattings, and the like), and determine a reasonable amount of time to wait before tweeting again (randomly, between two and four hours). Known issues: - Sentence endings are determined using periods, but excepting circumstances to which any of several rules apply ("Dr.", "U.S.A.", or "Ph.D." are examples where this is necessary). However, there's no way I've catalogued all possible abbreviations, so there will inevitably be some errors here. - The body of the article is found by the first <p> segment of the Wikipedia webpage, but occasionally a page will have an infoboxe which precedes the actual body of text in the markup, and have content which can be mistaken for the article's real beginning. The "Synonyms" section of some pages is an example. As a workaround, random_wiki will not post from pages including these infoboxes, but eventually I'll incorporate a HTML parser for even more intelligent first sentence identification. - This readme could be more detailed.
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.