A Twitter bot that posts scrapped text and links from specified theater websites on Twitter without the intervention of a human operator.
Before installation, auth.py
should be filled and/or created with the Twitter API key and secret in the main folder. You can apply to Twitter developer account below:
https://developer.twitter.com/
# Clone the repositories
git clone https://github.com/hozeren/theaterAATW.git
# Go to the clone folder
python setup.py install
# or install with pip in the folder
pip install .
There are two website functions now including New York Times, Whatsonstage, The Theatre Times, and TheaterMania. To use the functions after installation;
usage: theateraatw [-h] [nytimes] [wostage] [tmania] [ttimes] [fav]
positional arguments:
nytimes Start scraping and sending tweets from New York Times.
wostage Start scraping and sending tweets from WhatsOnStage.
tmania Start scraping and sending tweets from TheaterMania.
ttimes Start scraping and sending tweets from The Theatre Times.
fav Favorite the tweets, use with following keywords.
optional arguments:
-h, --help show this help message and exit
- "“Nero.” PC: Molnár Edvárd." @TheTheatreTimes https://t.co/3lD5ZK9qDH
- "Blankson-Wood appeared as Orlando in last season's production of As You Like It, which featured music by Shaina Taub and a giant chorus." @theatermania https://t.co/rlISSA0HZV
- "The bio-musical, which boasts such classics as "That'll Be The Day", "Peggy Sue" and "Oh Boy", charts the rockabilly singer's rise to fame until his untimely death at the age of 22." @WhatsOnStage https://t.co/UglzusdMpJ
- "Backing into writing after a stint at the Asiatic Petroleum Company, his macabre voice and flights into fantasy were clearly engendered by brushes with death and violence." @nytimestheater https://t.co/BhTWFqG8T7
- "This post was written by the author in their personal capacity.The opinions expressed in this article are the author’s own and do not reflect the view of The Theatre Times, their staff or collaborators." @TheTheatreTimes https://t.co/KxzxS7e7m0