powderblock / DealWithItReddit

Reddit bot. Computer vision for facial detection and transformation. Python, PRAW, & OpenCV.
http://www.reddit.com/user/DealWithItbot/
MIT License
33 stars 3 forks source link

Make it post to twitter #14

Closed porglezomp closed 9 years ago

mattdbr commented 9 years ago

Post to twitter on what? Reply to valid photos?

porglezomp commented 9 years ago

The bot should simply post all the reddit comments it makes to twitter, as a mirror there. Maybe you could have it respond to twitter mentions as well, but that's secondary.

On Nov 3, 2014, at 1:20 AM, Matthew Brener notifications@github.com wrote:

Post to twitter on what? Reply to valid photos?

mattdbr commented 9 years ago

That should be rather easy - I see @powderblock has just assigned himself. I'll let him get on to it.

powderblock commented 9 years ago

screenshot_7 Having trouble authenticating Twitter API. Account requires a valid US non-SMS mobile number to post tweets from within the API. Used my legitimate number on my main account and it doesn't work through dorks spoofs or proxies. Even Burner didn't work. Not sure what I'll end up doing. I still want to do this Twitter implementation, but without write perms (requires phone number) can't post tweets. Might need to barrow a friends phone.

porglezomp commented 9 years ago

How are you doing this? Other people seem to be able to make many bots, so there should be some way to manage it. Have you associated it with a dev account?

porglezomp commented 9 years ago

There's a tutorial about doing it on Raspberry Pi that includes setting up API keys and things, perhaps this avoids the problems you're running into? http://www.instructables.com/id/Raspberry-Pi-Twitterbot/?ALLSTEPS

It might also simply be that the tutorial's old enough that the API rules have changed.

powderblock commented 9 years ago

I have it associated with a dev account. Things changed recently. Seems like (from what I've spotted in tutorials from 2012 and 2013.) you used to be able to make a bot without a mobile phone. Now you need to add a phone number before adding read and write to an account.

powderblock commented 9 years ago

"To activate a Twitter app, you'll need a mobile phone number tried to your account for verification. We can remove this later." How does this skip the step I am running into?

porglezomp commented 9 years ago

Hm. It looks like they just reuse the phone number, since they've "made 10 bots." I assume you already tried your own phone number though?

powderblock commented 9 years ago

Yes. It refused it because it's tied to my main account.

powderblock commented 9 years ago

I am going to remove my number from @powderblock and add it to the bot.

powderblock commented 9 years ago

That worked. Let me test API key gen.

porglezomp commented 9 years ago

According to that guide, you can even remove the phone number once you have the API key, but that seems like something they might have tightened up.

powderblock commented 9 years ago

Looks I need to delete and make the application again for Access tokens.

powderblock commented 9 years ago

Got it working. https://twitter.com/DealWithItBot/status/529405468708331520

powderblock commented 9 years ago

Does still work without phone!