{"id":16939968,"url":"https://github.com/franciscojavierarceo/twitter-scan","last_synced_at":"2025-04-11T19:21:18.630Z","repository":{"id":41262072,"uuid":"349834919","full_name":"franciscojavierarceo/twitter-scan","owner":"franciscojavierarceo","description":"An AI to Scan for Toxic Tweets","archived":false,"fork":false,"pushed_at":"2024-08-18T16:56:17.000Z","size":43146,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T15:14:04.830Z","etag":null,"topics":["bert","celery","django","machine-learning","python","redis","render","toxicity-classification","twitter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/franciscojavierarceo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-20T21:04:53.000Z","updated_at":"2024-08-18T16:56:19.000Z","dependencies_parsed_at":"2025-02-20T00:43:16.457Z","dependency_job_id":null,"html_url":"https://github.com/franciscojavierarceo/twitter-scan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franciscojavierarceo%2Ftwitter-scan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franciscojavierarceo%2Ftwitter-scan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franciscojavierarceo%2Ftwitter-scan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franciscojavierarceo%2Ftwitter-scan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/franciscojavierarceo","download_url":"https://codeload.github.com/franciscojavierarceo/twitter-scan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465348,"owners_count":21108244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bert","celery","django","machine-learning","python","redis","render","toxicity-classification","twitter"],"created_at":"2024-10-13T21:05:57.758Z","updated_at":"2025-04-11T19:21:18.608Z","avatar_url":"https://github.com/franciscojavierarceo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toxic Twitter Scanner\n\nThis repository is a web app that allows you to scan a \nuser's tweets to see how \"toxi\" they are according to an open source model.\n\n[I wrote about it in more detail in this article](https://www.chaos-engineering.dev/p/building-an-ai-to-scan-toxic-tweets).\n\n# Render App\n\nTo run the poetry to get this started simply run:\n\n```commandline\npoetry install\n```\n\nIf you have issues with your shell just run:\n```commandline\npoetry env use python3.7\n```\n\n# Getting Started\n\nYou'll need to add a .env file with the following keys:\n```\nSECRET_KEY=\nALLOWED_HOSTS=127.0.0.1,localhost,YOUR_DOMAIN_NAME\nTWITTER_OAUTH_CALLBACK_URL=http://127.0.0.1:8000/twitter_callback/\nTWITTER_API_KEY_OLD=\nTWITTER_API_SECRET_OLD=\nTWITTER_CLIENT_ID_OLD=\nTWITTER_CLIENT_SECRET_OLD=\nTWITTER_API_KEY=\nTWITTER_API_SECRET=\nTWITTER_API_BEARER_TOKEN=\nTWITTER_CLIENT_ID=\nTWITTER_CLIENT_SECRET=\nSERVER_EMAIL=\nCELERY_BROKER_URL=redis://@localhost\nINTERNAL_MODEL_ENDPOINT=http://localhost:8000/score-tweets/\nDJANGO_SETTINGS_MODULE=tweetscanner.settings\n\n```\nTo properly start the app simply run:\n\n```commandline\npoetry shell\nexport $(xargs \u003c .env)\npython manage.py runserver\n```\n\n# Celery\n\nTo launch the celery worker simply open up another terminal and run\n```commandline\ncelery -A tweetscanner worker -l info\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranciscojavierarceo%2Ftwitter-scan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranciscojavierarceo%2Ftwitter-scan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranciscojavierarceo%2Ftwitter-scan/lists"}