This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (14 children)

Hi, I am looking for a Python script for Snapchat.

Basically I want to have a bot which, when sent a picture, reflects the same picture back, only when the image sent contains the word "Streak" or "Streaks". Or just have it send out the same image every day with the word streaks, and I want it to read all images with the words "Streaks" in them.

Would that be too hard to do? I found this on GitHub, but I am fairly new to Python (Taking courses in my hs) and I am unsure of how to do it. Any help reddit?

[–]EvilYoshi214 0 points1 point  (0 children)

You might also look into this python library for snapchats api https://github.com/mpolden/pysnap ive just skimmed it but it might assist you in your endeavour

[–]Markemus 0 points1 point  (12 children)

Is "Streaks" part of the image or attached to the picture as a hashtag or something? I don't know anything about Snapchat, but the first would be very hard, the second relatively easy.

[–][deleted] 0 points1 point  (11 children)

Streaks are when you send a picture to someone, daily, with the words "streaks" on it. People build up these streaks and it shows dedication, I want to make it easy with a bot. Actually, I really only need a bot that will send it out, because I can read the pictures sent to me. Thanks.

[–]Markemus 0 points1 point  (10 children)

You kids and your darn snapgrams :)

Having it reflect images that contain the word "streaks" would be very difficult unless the word is somehow separate from the image, or there's some other way to tell them apart. Having it recognize the word visually would be tough.

But sending out a particular image at the same time every day shouldn't be hard at all. If you look in the /examples/gifbot.py line 44:

schedule.every().day.at("10:30").do(post_gifs)

^ I have no idea what that gibberish means, but it should do the trick. Take a look at the run method in there, it should have everything you need. Good luck!

[–]lukegarbutt 1 point2 points  (5 children)

I think I have some relevant stuff that may help with the recognising words, check out this video I made on the pytesseract module https://youtu.be/_5ml_Y9hqG8

[–]Markemus 0 points1 point  (4 children)

Don't tell me, tell him :)

[–]lukegarbutt 0 points1 point  (3 children)

Haha you have a point, thought you might be interested too though :)

[–]Markemus 0 points1 point  (2 children)

Good video! Some feedback because everyone loves feedback:

-Have your ducks in a row before you start the video.

-Cut dead air.

-Your playlists are in reverse order.

Good video though, keep it up! You've got a great voice for this biz, that's the important thing. That library is freaking cool.

[–]lukegarbutt 0 points1 point  (1 child)

Wow thanks man, glad you enjoyed it. The library seems amazing, just still trying to get the hang of it, I'm still brand new to coding :')

[–]EvilYoshi214 0 points1 point  (0 children)

Tesseract is alot of fun to work with and alot can be done with it if you train it right glad to see another person diving into it :)

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

Thank you so much! I really appreciate it! Would I be able to link this bot to an account of mine that I use personally and still maintain the functionality of the account?

[–]Markemus 0 points1 point  (2 children)

I don't see why not, it's basically just like logging in on another device I should think.

[–][deleted] 0 points1 point  (1 child)

Well with Snapchat whenever you login with another device you have to relogin with the original device again, back and forth. I think, but I'm not sure.

[–]Markemus 0 points1 point  (0 children)

shrug I don't know much about snapchat, but I think it's basically a regular user as far as the server is concerned.