Giter Club home page Giter Club logo

twitter-contest's People

Contributors

auxproc avatar briankhan avatar connawiles avatar hkinney avatar johnbuluba avatar kurozael avatar miceonfire avatar morittt avatar philippbehmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

twitter-contest's Issues

Minimum retweets

This is a really great project, thank you for effort!
Would it be possible to add a feature where it only enters competitions with a minimum number of re tweets in order to avoid fake non legit competitions. They was a similar feature in the java version of this project, which I have attached. 'MIN_RETWEETS_NEEDED'
index.txt

Thank you!

pytz.exceptions.UnknownTimeZoneError: ''

Getting this error of unknown timezone with pytz looks like its after calling the scheduler in main.py?

Traceback (most recent call last):
File "main.py", line 430, in
scheduler = BlockingScheduler()
File "/usr/local/lib/python3.4/dist-packages/apscheduler/schedulers/base.py", line 61, in init
self.configure(gconfig, **options)
File "/usr/local/lib/python3.4/dist-packages/apscheduler/schedulers/base.py", line 95, in configure
self._configure(config)
File "/usr/local/lib/python3.4/dist-packages/apscheduler/schedulers/base.py", line 576, in _configure
self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
File "/usr/local/lib/python3.4/dist-packages/tzlocal/unix.py", line 122, in get_localzone
_cache_tz = _get_localzone()
File "/usr/local/lib/python3.4/dist-packages/tzlocal/unix.py", line 61, in get_localzone
return pytz.timezone(etctz.replace(' ', '
'))
File "/usr/local/lib/python3.4/dist-packages/pytz/init.py", line 180, in timezone
raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: ''

How to install? (Front page instructions don't work)

Hi @ModusVivendi , I've been trying this for 3 days and have probably spent 5-6h trying to do this to no avail. Here is my current situation;

  • I have Python3.5 installed
  • I have a clean copy of TwitterAPI as I just deleted and reinstalled it
  • I have a folder called twitter-contest-master on my desktop and it contains the following; .travis.yml (Untouched), config.json (Originally ...json.example and now filled out with MY access token etc.), log (Untouched), main.py (Untouched and seems to always have different errors when I run) README.MD, and tests.py.

When I run main.py in this state, I get this error:

Traceback (most recent call last):
  File "C:\Users\Lucas Fern\Desktop\twitter-contest-master\main.py", line 424, in <module>
    Config.access_token_secret)
  File "C:\Users\Lucas Fern\AppData\Local\Programs\Python\Python35-32\lib\site-packages\TwitterAPI\TwitterAPI.py", line 44, in __init__
    raise Exception('Missing authentication parameter')
Exception: Missing authentication parameter

I've tried what seems like everything but when I edit out an error, I generate a new one.

I'd be super grateful if you could help as I've already invested quite a bit of time into this project.

Sorry for being a nuisance,
Lucas

CRASH pytz.exceptions.UnknownTimeZoneError

Hello,

Very good idea, unfortunately I had some issues :(

$root@localhost : python3 main.py

Traceback (most recent call last): File "main.py", line 430, in <module> scheduler = BlockingScheduler() File "/usr/local/lib/python3.5/dist-packages/apscheduler/schedulers/base.py", line 82, in __init__ self.configure(gconfig, **options) File "/usr/local/lib/python3.5/dist-packages/apscheduler/schedulers/base.py", line 121, in configure self._configure(config) File "/usr/local/lib/python3.5/dist-packages/apscheduler/schedulers/base.py", line 689, in _configure self.timezone = astimezone(config.pop('timezone', None)) or get_localzone() File "/usr/local/lib/python3.5/dist-packages/tzlocal/unix.py", line 123, in get_localzone _cache_tz = _get_localzone() File "/usr/local/lib/python3.5/dist-packages/tzlocal/unix.py", line 62, in _get_localzone return pytz.timezone(etctz.replace(' ', '_')) File "/usr/local/lib/python3.5/dist-packages/pytz/__init__.py", line 181, in timezone raise UnknownTimeZoneError(zone) pytz.exceptions.UnknownTimeZoneError: ''

Retweeting manual retweets.

Hi there,

Firstly, thank you for making this bot. It was an interesting evening getting it set up (as I'm very new to this).

One thing I have noticed is that it will retweet users who are doing manual retweets (i.e. posts that start "RT @username"). As these are users entering competitions and not the competitions themselves, this won't give valid entries into competitions. An example of this behaviour is here (my bot has retweeted this): https://twitter.com/Parsnip_Pete/status/760384050154516480

Can you advise how to fix this?

KeyError: 'Resources'

Getting the following error message when running the script,

Traceback (most recent call last):
File "main.py", line 435, in
CheckRateLimit()
File "main.py", line 182, in CheckRateLimit
for res_family in r['resources']:
KeyError: 'resources'

Issue with ASCII character out of range

2016-09-26 14:03:26,911 - ERROR - Could not connect to TwitterAPI - are your credentials correct? Traceback (most recent call last): File "main.py", line 392, in ScanForContests original_screen_name,text)) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 143: ordinal not in range(128) 2016-09-26 14:03:26,920 - INFO - Getting new results for: Retweet and win 2016-09-26 14:03:27,951 - ERROR - Could not connect to TwitterAPI - are your credentials correct? Traceback (most recent call last): File "main.py", line 406, in ScanForContests logger.info("{0} - {1} : {2}".format(id, screen_name, text)) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 2: ordinal not in range(128)

Apscheduler issue

I get this issue:
File "main.py", line 7, in
from apscheduler.schedulers.blocking import BlockingScheduler
ImportError: No module named apscheduler.schedulers.blocking

Im not sure what it means, pls help.

Application Rate Limit

Hi,
Thanks for the project, it works and it rt'd some contests since i've launched the script
But i've got t
his, and then the program seems to be stuck :
2017-12-20 23:06:54,858 - INFO - application Rate Limit-> /application/rate_limit_status: 58.88888888888889
2017-12-20 23:07:04,750 - INFO - application Rate Limit-> /application/rate_limit_status: 58.333333333333336
2017-12-20 23:07:14,753 - INFO - application Rate Limit-> /application/rate_limit_status: 57.77777777777777
2017-12-20 23:07:24,805 - INFO - application Rate Limit-> /application/rate_limit_status: 57.22222222222222
and many lines like this.
also, i don't understand all the params in the config.json, what are the rates and update times ?
i think it's because of these params that the program seems to be stuck for a little time between each RT.

Errors when running?

Hi,
Sorry if I'm really bad at this as I only just started learning python. I've tried launching your app in both 2.7 and 3.5 versions and both come to different errors, here is a screenshot of me running in both python modules, hope you can help me troubleshoot this and again, apologies for being dumb and new.

I understand that you say to run it in v3 of python but I couldn't figure out why pip3 installer wasn't working to install twitterAPI and that seems to clearly be the problem. It'd be great if you could help me figure this out, especially as it seems as simple as installing TwitterAPI for v3 of python.

Thanks,
Lucas

Retweeting Bot Spotters

So it keeps retweeting @RealBotSpotter and I think I have it blocked so it won't do that anymore. Are there any more bot spotting handles or tactics that other people have found/gotten work arounds?

New scheduler does not seem to clear the queue properly

After running the script with the newest scheduler yesterday afternoon and all night, I noticed it did not once clear the queue and the script eventually crashed. I think the new scheduler has caused some instabilities I cant identify.

Merge 'randomize_tweets' reverted my commits

I am not sure what happened here, but it undid what i commited today.

Also i can modify the main scheduler so we dont have 2 schedulers. ;-)
Please contact me at buluba89 at gmail.com to talk about some issues!

Thanks!

Following and favorites not working?

Not exactly sure if I'm missing something here, but I'm almost sure that the following and favorites feature isn't working. I'm yet to follow or favorite any tweets even though it's retweeted many tweets that have favorite and follow as requirements.

Hey, good job!

I'm just curious as to why this fork doesn't link back to my original, it'd be nice to have it included in the README at least :) anyway, keep it up!

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.