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

Questions For Boting/Automation

Discussion in 'General Programming Chat' started by yellowcat, Mar 9, 2017.

  1. yellowcat

    yellowcat Regular Member

    Joined:
    Aug 27, 2015
    Messages:
    304
    Likes Received:
    175
    Location:
    internet 24/7
    Home Page:
    I'm a little confused with this.
    Okay say you are coding a twitter follower bot and have a list of people you want to follow, such as.
    @alice
    @bob
    ...Etc
    Which is the best way to go about this?

    1.
    Have the bot go to twitter.com/Alice then click follow and do this for the rest of the users.
    Possible Problems - Could leave mad footprints because users typically click from a certain page to go navigate to a users page,Not just directly go there (at-least not in mass), i feel some websites record this.

    2.
    Tweek the html code from a single persons follow button.
    Such as
    Code:
    #pseudocode
    <button user-to-follow="Bob">Follow</button>
    

    Into the below to follow alice.
    Code:
    #pseudocode
    <button user-to-follow="Alice">Follow</button>
    
    Possible Problems - Twitter could detect that bot is on single page mass following.

    Or should i just scrap the idea of following from a list and just go to X user's followers page and/or the search bar then scroll and follow from that?

    I guess at the end of the day it's better to build something that emulates human behavior, such as scrolling/viewing photos/using search bar, as opposed to something that just "logs in ,mass follows then logs out".


    Another random question.
    Can websites such as Facebook/Instagram/Twitter etc record mouse movement?

    Perhaps i am just being Paranoid.
    Any insight or advice would be appreciated :)

     
  2. sevnthaxiom

    sevnthaxiom Registered Member

    Joined:
    Oct 14, 2015
    Messages:
    61
    Likes Received:
    10
    Gender:
    Male
    Occupation:
    Programmer.
    Location:
    Florida
    I have a single threaded bot that does this. You are more than welcome to try it out.
     
  3. yellowcat

    yellowcat Regular Member

    Joined:
    Aug 27, 2015
    Messages:
    304
    Likes Received:
    175
    Location:
    internet 24/7
    Home Page:
    ...
     
  4. customerblast

    customerblast BANNED BANNED

    Joined:
    Aug 7, 2016
    Messages:
    132
    Likes Received:
    29
    Gender:
    Male
    My take on this,

    Right now twitter, facebook, instagram etc.... they don't record the mouse movements and carefully track everything being human or not, HOWEVER you will want to just pay attention to acting within normal thresholds.

    In other words, I think having the bot go to the page on twitter and press follow is perfectly fine, but twitter may notice an account following 4000 people per day, you just have to test the limits.

    You are being overly paranoid in thinking they are watching *that* closely. Although im sure its within their reach they aren't detecting mouse movements of their millions of users at this time. Maybe one day tho lol.
     
    • Thanks Thanks x 1
  5. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,438
    Likes Received:
    468
    Gender:
    Male
    Location:
    Portugal
    There's 2 ways you can automate websites. By simulating user actions or using http requests.

    Simulating user actions aka automating the browser is super easy but can lead to leaving footprints. You can use selenium and any language of your choice to automate chrome, firefox, internet explorer and headless browsers (phantomjs, etc).

    When I can I always use http requests. This means I make a piece of code in which I tell the program which url to send a request to, which type of request it is (GET, POST, DELETE, etc), which parameters will be sent (for instance when you signup on a website), etc. It is quicker, you can add any header you want, etc.

    Which way are you thinking to choose?
     
  6. yellowcat

    yellowcat Regular Member

    Joined:
    Aug 27, 2015
    Messages:
    304
    Likes Received:
    175
    Location:
    internet 24/7
    Home Page:
    Selenium. Chrome and/or Phantomjs
    Besides useragents/proxy/windowsize
    What footprints can be left?
     
  7. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,438
    Likes Received:
    468
    Gender:
    Male
    Location:
    Portugal
    Websites can track your mouse and you can't simulate that using selenium. For instance, you can't create google accounts using selenium, they know you are using some sort of automated actions and won't let you proceed or always ask for phone verification.
     
  8. yellowcat

    yellowcat Regular Member

    Joined:
    Aug 27, 2015
    Messages:
    304
    Likes Received:
    175
    Location:
    internet 24/7
    Home Page:
    Whoa that was a super cool site you posted. Too bad you deleted it ;P
     
  9. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,438
    Likes Received:
    468
    Gender:
    Male
    Location:
    Portugal
    https://panopticlick.eff.org/ I deleted it because I didn't think it was the right website I wanted to share. If you scroll down you'll see plenty of info a website can get from your browser.
     
    • Thanks Thanks x 1
  10. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,742
    Likes Received:
    11,403
    Occupation:
    COINZ
    Location:
    BUYAH
    Home Page:
    It's funny when I'm working on Google stuff ( yes folks clients do ask me to work nice with Google - but i don't ever send reports OR stor data in gmail or gdocs) and I click quickly on the same button and repeat the same thing very similarly, their potsmoking Rank Brain sends me recaptchas to prove I'm not BartoBrain.
     
  11. TheTyper

    TheTyper Registered Member

    Joined:
    Jun 4, 2016
    Messages:
    81
    Likes Received:
    4
    What language should I be using to manage https requests?
     
  12. LostLife

    LostLife Regular Member

    Joined:
    May 12, 2017
    Messages:
    265
    Likes Received:
    288
    Gender:
    Male
    Occupation:
    Software Engineer
    Any language. It depends on you.