A Twitter bot that tweets statistics about French people found on Google
The Twitter bot is @StatFrancais
It looks for pages with titles that include "Un/1 Français sur X" or "X% des Français", X being a number, and tweets them after some cleaning.
It uses the Google Custom Search JSON API.
When creating a Google Custom Search Engine, Google forces you to add websites to search in specifically. To be able to search the entire web, do the following:
- Add a random website on the site search field when creating your Custom Search Engine
- In the configuration panel, choose the option "Search the entire web but emphasize included sites"
- Remove the random website you added at the beginning from the list
The source code of this bot is available under the terms of the MIT license.