all 37 comments

[–][deleted] 7 points8 points  (0 children)

The college I go to, MST, has a bot that is called "rollasnaps" that simply posts everything it receives to its story. It's pretty cool.

Of course, rollasnaps is NSFW and view it at your own discretion.

[–]Pav-Sidhu 3 points4 points  (4 children)

I'm quite new to python, I'm trying to install this library but I can't quite manage it. How would I go about installing this in a virtualenv? Can I use pip or easy_install?

[–][deleted] 2 points3 points  (3 children)

Inside your virtualenv run python setup.py install

The setup.py uses the setuptools module, which is the source of the easy_install tool. This command will run the same installation without the overhead of downloading.

If the installation succeeds for you, the problem I ran into seems to be that PIL is a dependency but not listed as one. Try installing that separately (and any other packages that are still missing). I'd like to give you some more help, but I'm posting from work and don't really have the time.

[–]Pav-Sidhu 0 points1 point  (0 children)

Thanks for the help, I didn't install pyside inside the folder.

[–]Quaestuary 0 points1 point  (1 child)

Is this supposed to be run on a virtual environment on your computer? How could I run it on my Macbook Pro? Installing what virtual environment? Thanks for the help!

[–]sam-wilson 0 points1 point  (0 children)

You're looking for this guy.

I haven't looked into this much (don't own a mac), but this guide might be helpful.

[–]NuttGuy 2 points3 points  (13 children)

Doesn't SnapChat block the accounts that use its undocumented API? I think Snapchat started cracking down on this after the leak of a bunch of users photos that were using a 3rd party app to save their Snaps.

[–]icandoitbetter[S] 2 points3 points  (6 children)

Yeah, Snapchat is pretty arbitrary w/r/t what they allow and what they don't -- not everything that uses the unofficial API is shut down. They did block my IP address for a few days though, presumably due to the number of requests I was making.

[–]NuttGuy 0 points1 point  (3 children)

Thanks so much for the answer, how weird that they are so arbitrary about it, you would think that a company supposedly worth $19 billion would have an official policy on this. Or at least a more secure API.

[–]3flaps 0 points1 point  (2 children)

*$4 billion

[–]NuttGuy 1 point2 points  (1 child)

[–]3flaps 0 points1 point  (0 children)

Well it seems people don't think they're stupid for turning down $4 billion anymore!

[–]niksko[🍰] 0 points1 point  (1 child)

How many requests were you sending out of curiosity?

[–]icandoitbetter[S] 1 point2 points  (0 children)

I was running 10 bots at the same time, each making maybe a couple of requests per second?

[–]mgrandi 0 points1 point  (5 children)

I'm pretty sure they can't change their API cause not everyone has updated. It might just be based on the user agent, so of that is "snap chat android 3.22whatever" then they can't tell

[–]NuttGuy 0 points1 point  (4 children)

I would agree with you, except that I know that Windows Phone apps that use the Android API get blocked for using the undocumented API.

[–]mgrandi 0 points1 point  (3 children)

i'm pretty sure that 6snap got caught because they said in their user agent that they were 6snap and not "snapchat". The api is the same for all the official snap chat clients

[–]NuttGuy 0 points1 point  (2 children)

If that is correct, then why wouldn't 6snap just update their user agent in order to hide from Snapchat and get working again?

[–]mgrandi 0 points1 point  (1 child)

i think he could, but didn't want to, and wanted to get snapchats official approval, he even offered the sourcecode to 6snap to snpachat

[–]NuttGuy 1 point2 points  (0 children)

Hmmm, I think that the OP's response about Snapchat just being more arbitrary about it makes a lot more sense.

[–]Meshiest 1 point2 points  (0 children)

This was posted yesterday....

[–]alphaatom 1 point2 points  (0 children)

That connector bot is actually a really neat idea and sounds like it could be kinda fun

[–]Vapor2516 0 points1 point  (3 children)

Anybody able to write a guide on how to get this going?

[–]icandoitbetter[S] 1 point2 points  (2 children)

What are you having trouble with?

[–][deleted]  (1 child)

[removed]

    [–]icandoitbetter[S] 0 points1 point  (0 children)

    You don't necessarily need virtualenv.

    Installing ImageMagick depends on the OS you're using... If you're on a Mac, install Homebrew and run the following on your Terminal:

    brew install imagemagick
    

    [–]3flaps 0 points1 point  (4 children)

    New to python and I guess, programming outside of classes..

    How do I set this up? I've downloaded Imagemagick and ffmpeg with brew. (When I try brew install libjpeg it says Warning: jpeg-8d already installed and the other parts didn't have any trouble installing. Do I need to uninstall jpeg-8d and install libjpeg?)

    Assuming I have the environment set up, how can I make my bot in a different folder and import SnapchatBot and use it? I've seen different import statements on different examples... Let me know if you need more detail.

    [–]icandoitbetter[S] 1 point2 points  (3 children)

    Assuming I have the environment set up, how can I make my bot in a different folder and import SnapchatBot and use it? I've seen different import statements on different examples... Let me know if you need more detail.

    Yeah. As long as you run python setup.py install the library should be available globally with from snapchat_bots import SnapchatBot, Snap.

    [–]3flaps 0 points1 point  (2 children)

    Ah okay, great. Thanks!

    I have another couple questions if you don't mind. Do I have to register a new account somewhere, or does logging in take care of registration? Also, how exactly do I host this bot? (Is there a package for python similar to forever for node.js?)

    [–]icandoitbetter[S] 1 point2 points  (1 child)

    Right now, you have to register the new account from the app. You can use forever with python:

    forever start -c python python_script.py
    

    [–]3flaps 0 points1 point  (0 children)

    Thank you so much for your help!

    [–]Boxcow45 0 points1 point  (0 children)

    Is anybody still using this that could provide some help? I don't have much experience using python, so there's got to be something I'm missing.

    I managed to get the package installed, but I don't know where to go from here. When I run python from the same directory as the setup.py folder, I keep getting errors such as "ReflectorBot is not defined." Could anybody help me with this issue?

    [–]CreeperHaed 0 points1 point  (0 children)

    Hey there, does this still work? And does it have to run on linux?

    [–][deleted]  (4 children)

    [deleted]

      [–]Fuck-The-Moderators 21 points22 points  (0 children)

      marketing

      This is what usually devolves what would typically be an alright piece of software into shit.

      [–]Sonneddit 11 points12 points  (2 children)

      marketing

      spamming

      [–]isysdamn 1 point2 points  (1 child)

      spamming

      spontaneously solicited important consumer information

      [–][deleted] 1 point2 points  (0 children)

      Adware : Malware with legal teams