GithubHelp home page GithubHelp logo

telegnom / ds100bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baeuchle/ds100bot

0.0 1.0 0.0 3.13 MB

Twitter-Bot für Bahnabkürzungen

Home Page: https://ds100.frankfurtium.de

License: Other

Python 99.23% Shell 0.77%

ds100bot's Introduction

DS-100-Bot

Dies ist ein Twitter-Bot zur Expansion von Bahnabkürzungen.

Vorbereitungen

Die Datei config/schema.sql enthält die Struktur der Datenbank. Die Datenbank info.db kann damit erstelt werden:

    cat schema.sql | sqlite3 info.db

Um den Twitter-Bot nutzen zu können, muss die geneigte Benutzerin Twitter-Developress werden. Dann erhält sie auch Authentifizierungsdaten.

Die Datei credentials.py.dist muss in credentials.py umbenannt werden und die Twitter-Authentifizierungsdaten eingetragen werden.

Daten werden eingelesen und die Dokumentation erzeugt mit

    tools/setup

Vorbedinungen

Der Bot ist in python3 geschrieben und benutzt SQLite3 als Datenbank. Alle verwendeten Python-Packages sind als Ubuntu-Packages verfügbar und wahrscheinlich auch mit pip installierbar.

Ausführen

Es gibt vier Hauptprogramme. Für Informationen zur Bedienung dieser Programme kann die Option --help verwendet werden.

  • ds100bot: Der eigentliche Bot. Kann beliebig oft im Abstand weniger Minuten ausgeführt werden.
  • statistics: Gibt Statistiken über die Benutzung des Bots aus. Sollte z.B. einmal monatlich ausgeführt werden.
  • test: Führt Testfälle aus und überprüft, ob die Testtweets korrekt beantwortet werden.
  • get_tweet: Lädt echte Tweets herunter. Damit können problematische Tweets genauer analysiert werden.

LIZENZ

Der Quellcode dieses Bots ist unter der Apache Lizenz, Version 2.0, lizensiert. Siehe Datei LICENSE.

Die Datei config/api_weights.json ist von https://github.com/twitter/twitter-text/tree/master/config/v3.json genommen und von Twitter, Inc. ebenfalls unter Apache Lizenz, Version 2.0, lizensiert.

Die Datentabellen in sources stehen unter verschiedenen Lizenzen. Diese sind in data aufgeführt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.