okfn-brasil / whistleblower Goto Github PK
View Code? Open in Web Editor NEW🚨A Twitter bot for publicly reporting suspicions found by Rosie, Serenata de Amor's AI
Home Page: https://twitter.com/RosieDaSerenata
🚨A Twitter bot for publicly reporting suspicions found by Rosie, Serenata de Amor's AI
Home Page: https://twitter.com/RosieDaSerenata
The Toolbox was released to PyPI we need to update the requirements file.
What is the purpose of this Issue?
The purpose of this issue is include Continuous Integration for the project.
What could be done to achieve this purpose?
Adds a coverage tool like coveralls as some other repositories will help to improve the code quality and maintainability.
José Mentor twitter account is @jose_mentor
I was setting up my env and then I had a problem to execute this command:
docker-compose run worker python whistleblower/get_dataset.py
Output:
Starting whistleblower_mongo_1 ... done
Starting whistleblower_rabbitmq_1 ... done
Traceback (most recent call last):
File "whistleblower/get_dataset.py", line 252, in <module>
fetch()
File "whistleblower/get_dataset.py", line 134, in fetch
urlretrieve(url, zip_file_path)
File "/usr/local/lib/python3.6/urllib/request.py", line 258, in urlretrieve
tfp = open(filename, 'wb')
PermissionError: [Errno 13] Permission denied: 'data/Ano-2015.zip'
Looks like this is a expected Docker's behavior, when its run and uses a volume that is not there, it will creates as root :/
Well... this was enough to me:
mkdir -p data && docker-compose run worker python whistleblower/get_dataset.py
follow up from telegram chat
As we all know, after serenata got a couple minutes of fame in the TV, the # of followers increased quite a lot. Along with that, I noticed quite a few offensive comments which could make deputies really angry and eventually get Rosie in trouble.
I think we should make an attempt to watch out for those comments and reply to people making it clear that this is only a suspicion and they are innocent until proven guilty.
Something along the lines of the following could be a great start:
⚠️ Atenção: tenha em mente que o reembolso é apenas suspeito. Por favor, dê uma chance de resposta ao deputado 😄 ❤️
⚠️ Heads up: keep in mind this is just a suspicious reimbursement. Please give the deputy a chance to reply 😄 ❤️
From the health check I guess that #11 missed Landscape config: we must have a .landscape.yml
file configuring the check to use Python 3, for example.
This morning in a Twitter thread a @RosieDaSerenata follower gave us a great idea:
This bot could tweet (as it does today) but also read the replies @RosieDaSerenata gets with a couple of standardized hashtags (eg #FalsoPositivo and #RosieAcertaOutraVez).
This could be useful to build a dataset for supervised machine learning from the feedback we get from @RosieDaSerenata followers.
The method for getting the tweets from the Twitter account (api.GetUserTimeline
) limits the results in 20 statuses, as documented in the official API. The same place gives the solution for our problems: the max_id
parameter.
Roberto de Lucena user account is no longer dep_lucena like it is on the chamber website, it is now robertodelucena
Following @talespaiva's suggestion in a tweet and recent replies to
@RosieDaSerenata
.
Docs for Twitter API: https://python-twitter.readthedocs.io/en/latest/_modules/twitter/api.html?highlight=%22def%20PostUpdate%22
Idea suggested by @talespaiva here: tweets could contain a link to Jarbas and the receipt image to get more visual.
What is the problem?
We don't have a donate button 😱
How can this be addressed?
Add a button donate button to the README file
It something like linked with Serenata's Apoia.se Campaign. I generated that badge with Shields.io.
Who could help with this issue?
Anyone really
Labels
Already there 😉
Important
This is a first-timers-only issue, it is supposed to help people get their feet wet. Keep that in mind when considering to open a pull request 😉
What is the purpose of this Issue?
The purpose of this issue is include Whistleblower project on the post with all repositories of the project.
What could be done to achieve this purpose?
Write a extension to be included explaining about the Whistleblower should do the job.
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.