Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get this script working #9

Closed
akshaymathur opened this issue Jun 5, 2020 · 6 comments
Closed

can't get this script working #9

akshaymathur opened this issue Jun 5, 2020 · 6 comments

Comments

@akshaymathur
Copy link

I followed the steps in the readme document and executed the script. It runs without any error but isn't working on twitter that means no likes for the hashtag.

Can some help me debug, please?

@ghost
Copy link

ghost commented Jun 6, 2020

Have you found a fix yet? I have the same problem. I'm going to take a look at it again tomorrow so if I find a fix I'll let you know

@akshaymathur
Copy link
Author

akshaymathur commented Jun 7, 2020 via email

@skiingmadman
Copy link

skiingmadman commented Jun 9, 2020 via email

@ghost
Copy link

ghost commented Jun 9, 2020

I fixed it...i got stuff running...here's a piece of a very long script...it's 40x longer than this...i just copied and pasted once i got it working for different profiles, topics, etc. it runs so often i'm getting temporary restricted by twitter for 3 days on likes...so not running all the time but it works..might wnat to extend the time cycle.. at the end from 36 to 50...let me know if any issues!! good luck. . gmail won't let me send as file..so just pasting all the code after my name Best regards, Eric //working.js var Twitter = require('Twitter'); var config = require('./config.js'); var T = new Twitter(config); function follow1() { // Set up your search parameters var params = { q: 'bigdata', count: 5, result_type: 'recent', lang: 'en' } // Initiate your search using the above paramaters T.get('search/tweets', params, function(err, data, response) { // If there is no error, proceed if(!err){ // Loop through the returned tweets for(let i = 0; i < data.statuses.length; i++){ // Get the screen_name from the returned data let screen_name = data.statuses[i].user.screen_name; // THE FOLLOWING MAGIC GOES HERE T.post('friendships/create', {screen_name}, function(err, response){ if(err){ console.log(err); } else { console.log(screen_name, ': FOLLOWED'); } }); } } else { console.log(err); } })} // follow1(); setInterval(follow1,3600000); THATS IT!! also you need this file int he same folder filled out wiht your info //config.js module.exports = { consumer_key: 'rR7OceHVIiDiKKrvX6njc0xxx', consumer_secret: 'anTEkupBuzctt48CVgnGIOCrhi6NOxvTa5QkhgpWiOkTaPxxxx', access_token_key: '22370886-edZkDZrkaiczRm1gQLlRbYPQoYvyDmmey1cH7xxxx', access_token_secret: 'dE1iNKhzTOuedLXabIYwbTOfZkMS4u7AekM7Z2SpBxxxx' } On Sat, Jun 6, 2020 at 10:24 PM Akshay Mathur [email protected] wrote:

No, I haven't yet found the fix. Your help to fix the issue will be appreciated. On Sun, Jun 7, 2020, 5:27 AM r63b @.***> wrote: > Have you found a fix yet? I have the same problem. I'm going to take a > look at it again tomorrow so if I find a fix I'll let you know > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <#9 (comment)>, or > unsubscribe > < https://github.com/notifications/unsubscribe-auth/AAA3RGXN2DGRLYTRKVTYMTDRVLJU7ANCNFSM4NTXUEFA > > . > — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APN64BU5Y6CERNZHO56QZXDRVL25XANCNFSM4NTXUEFA .

Just delay the triggers in the google app settings so it doesn't repeat its self so often?

@skiingmadman
Copy link

skiingmadman commented Jun 9, 2020 via email

@neojato
Copy link
Owner

neojato commented Dec 14, 2022

See #12 for latest on this issue.

@neojato neojato closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants