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

Programming a Twitter Bot

Discussion in 'Twitter' started by sebyku, Dec 12, 2014.

  1. sebyku

    sebyku Junior Member

    Joined:
    Mar 9, 2013
    Messages:
    163
    Likes Received:
    22
    Occupation:
    Facebook Application Develope
    Being a programmer I would like to create my own twitter bot (most likely in C# - windows forms application) but not commercial, only for personal purposes. I am little new in this and what should I need?

    - creating a app from https://apps.twitter.com/ ?
    - getting a library from google that connect me to api ?
    - develop it in visual studio?


    Is there a chance to find a library that would help me to connect to all api to make an application similar to tweetadder for example?
     
  2. Preemo

    Preemo Newbie

    Joined:
    Oct 1, 2011
    Messages:
    30
    Likes Received:
    0
    This might be of help from a quick google search - http://www.martani.net/2009/09/build-your-own-retweet-hash-bot-with.html
     
  3. ItsBlinkHere

    ItsBlinkHere Regular Member

    Joined:
    Apr 27, 2014
    Messages:
    409
    Likes Received:
    150
    Location:
    At Large
    Yeah, just get a library to do the hard work for you. My stuff is in python and it seems to work fine. It should work alright in C# to. Give it a go and let us know how it goes.
     
  4. eqpaisley

    eqpaisley Junior Member

    Joined:
    Oct 16, 2012
    Messages:
    175
    Likes Received:
    48
    Occupation:
    EMT
    Location:
    Brooklyn
    I've done this in PHP and there are tons of good libraries. But the API is easy to work with once you master making your requests.
     
  5. K.H.R

    K.H.R Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 9, 2013
    Messages:
    2,931
    Likes Received:
    953
    Gender:
    Male
    Occupation:
    Study + Outsourcing
    Location:
    BHW
    What will it DO ?
     
  6. sebyku

    sebyku Junior Member

    Joined:
    Mar 9, 2013
    Messages:
    163
    Likes Received:
    22
    Occupation:
    Facebook Application Develope
    I already made a part of my soft, thank you for all :) I used your recomended library Preemo.
    I have a little question for programmers: For start following I have made with delay seconds and all is good, but the delay is not working good for getting a user friend list, it get`s first 300 then the message is that I reached limit, code 88.

    I am not familiar with the list ForEach and I have the code like this:
    and my delay function is:

    how can I put the delay on that foreach?

    print.jpg print_1.jpg
     
  7. Preemo

    Preemo Newbie

    Joined:
    Oct 1, 2011
    Messages:
    30
    Likes Received:
    0
    Sebyku no problem glad to help. Take a look here - https://dev.twitter.com/overview/api/response-codes for your error code. It looks like you are hitting the rate limit.