auxproc / twitter-contest Goto Github PK
View Code? Open in Web Editor NEWSearches for retweet contests on Twitter and retweets them - Python3.x version.
Searches for retweet contests on Twitter and retweets them - Python3.x version.
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!
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: ''
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;
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
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: ''
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?
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'
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)
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.
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.
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
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?
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.
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!
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.