1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Scripting Ideas for Yik Yak upvoting (web browser)

Discussion in 'General Scripting Chat' started by 100 Trials, Aug 31, 2016.

  1. 100 Trials

    100 Trials Newbie

    Joined:
    Jul 5, 2016
    Messages:
    41
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    You don't want to know
    I'm looking to create a script that traverses through my newsfeed on Yik Yak and auto-upvotes every yak and every comment. Any ideas on how I should go about doing this? I've been unable to find any public scripts to accomplish this, so I figured I would create my own.

    I have been looking into imacros and considering a python approach, but I'm not sure what the easiest route would be for my needs. I expect the algorithm to be a basic tree-traversal functionality:

    1) Upvoting a post
    2) Checking if the "Replies" button has any comments (if a yak has 4 comments, it the button says "Reply (4)") and traverse down through the comments and upvote everything.
    3) Back out of the replies and go to the next yak below it on the feed (feed is ordered chronologically)

    Any ideas? I assume the easiest way to program it would be to find all of the upvote buttons (a green ^ icon) and then find each Reply button to expand and find the comment upvote buttons.

    I'm also curious as to whether or not Yik Yak has any security measures in place to detect this (doubtful).

    Thanks for any guidance!
     
  2. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    • Thanks Thanks x 1
  3. 100 Trials

    100 Trials Newbie

    Joined:
    Jul 5, 2016
    Messages:
    41
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    You don't want to know
    Thanks for the reply. Interesting, I don't know how I missed the API for it online. I'm unsure how to actually make use of the python files from it, but I will play around with it and see if it just launches yikyak from running the code.
     
  4. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    If it's your first time dealing with an endpoint, id recommend going the JSON data route - performs slightly better than XML and I find it looks nicer.
    I'd recommend checking out PyCurl - php background for me so everything is curl!

    Otherwise Python requests, and urllib are also acceptable libraries.
     
  5. johnstonsmith

    johnstonsmith Junior Member

    Joined:
    Apr 19, 2016
    Messages:
    140
    Likes Received:
    15
    i used to reinstall yik yak over and over so i could upvote posts
    that stopped working after a couple updates