Login
Login
National Data Archive
An Online Microdata Catalog
  • Home
  • Catalog
  • Citations
    Home / Central Data Catalog / ARVID220U_INVANDRINGSBOT
central

When people post ignorant tweets about immigration, this bot replies with a rant about the moral responsibility we all have to welcome refugees. (In Swedish.)

ArVID220u_invandringsbot
ArVID220u
Created on December 02, 2019 Last modified December 02, 2019 Page views 36 Metadata JSON
  • Project Description

Overview

Abstract
# invandringsbot
When people post ignorant tweets about immigration, this bot replies with a rant about the moral responsibility we all have to welcome refugees. All in Swedish.

# How it works

Whenever anyone tweets a tweet containing a certain trigger word or phrase, invandringsbot will reply with a rant.

In this specific, original implementation of invandringsbot, the trigger word is "massinvandring" (Swedish for "mass immigration") and the rant is about the moral responsibility we have to welcome refugees (also in Swedish). However, the trigger word can be anything, as can the rant be.

# Translate into your language!

It's not only Swedes who are in need of a rant about our moral responsibilities. Make the world a better place by translating invandringsbot!

It's simple to do.

1. Fork this repository.
2. Rename the `apikeys_template.py` file to `apikeys.py`, and add your Twitter API keys as obtained from apps.twitter.com.
3. Open the `setup.py` file. Fill in your trigger word, rant, and the Twitter handle of the bot.
4. Finished setup! Now, start invandringsbot by calling `python3 mainbot.py`, when in the correct directory in your terminal.

# Dependencies

Using python 3. Has not been tested on python 2, but should work with minor optimizations.

- [Twython](https://github.com/ryanmcgrath/twython). Used for all contact with the Twitter API.
Authoring entity
Agency Name Role Affiliation
ArVID220u owner http://twitter.com/invandringgarna
Language
English

Methods, software and scripts

Software
Name Libraries or packages used
Python
datetime, massinvandring_streamer, time, threading, re, apikeys, twythonaccess, setup, twython
License
Name
MIT License

Metadata production

Producers
Name Role
GitHub Bot bot
Date of Production
01 December 2019
National Data Archive

© National Data Archive, All Rights Reserved.