Code Monkey home page Code Monkey logo

ee-to-english-converter's Introduction

EE-To-English-Converter

Python Twitter bot that tweets the contents of Evening Express articles. This bot was created to try and counter the clickbate nature of the Evening Express twitter account, a local Aberdeen newspaper. Because forcing people to complete a survey so they can read <280 characters worth of content is 'real journalism' TM.

ee-to-english-converter's People

Contributors

aldoabdn avatar

Watchers

James Cloos avatar

ee-to-english-converter's Issues

For as little as £5.

This is what appears at the end of tweets. The Evening Express have added an advert to the end of their page but it looks like the bot accidentally cuts off the final part.

It should read:
For as little as £5.99 a month you can access all of our content, including Premium articles.

Need to fix:

  • Why is the last sentence cut off
  • Add the subscribe link to the end of the tweet

We've detected that JavaScript is disabled in your browser.

This is what is returned from the bot but only for certain URLs
Bot Tweet
Original Tweet
Based on manually clicking the links, I think sometimes users are prompted with a cookie popup they need to accept. It's not every time. I think something like a check and maybe 3-5 attempts might get around this or switching to a method that spoofs the web server into thinking the request it being made from a js enabled browser.

Memory Usage

For larger articles, the bot runs out of memory

Example tweet this happens with: https://buff.ly/2Y0HCNu

To fix this, change the way the bot creates and tweets. Instead of generating all the tweets first and posting them all at the same time, generate tweets on the fly and send them out without storing them. Remember to keep track of the last posted tweets ID.

Can't Reply

The Evening Express unhappy with my attempts to make their tweets legitimate have blocked the bot from replying.

Rather than generate new accounts the bot will be changed to quote retweet the articles instead followed by a series of hashtags to allow Aberdonians to find the content

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.