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

Need help with bot

Discussion in 'General Programming Chat' started by shubham44, Jun 2, 2013.

  1. shubham44

    shubham44 Registered Member

    Joined:
    Mar 18, 2012
    Messages:
    56
    Likes Received:
    54
    guys i need help in making bot ...

    This what i want from bot
    a) 1st take text from csv or txt file.
    b) paste at the end of the url
    c) check the availability
    d) save the available url in txt file

    My Problem : i don't have an knowledge in programming lang .. and i don't know from where to start...

    i need suggestion on which program should i use to code the bot ..
    thanks in advance ...
     
  2. satyr85

    satyr85 Power Member

    Joined:
    Aug 7, 2011
    Messages:
    580
    Likes Received:
    445
    Location:
    Poland
    Try zennoposter demo version.
     
    • Thanks Thanks x 1
  3. TheRevaN

    TheRevaN Newbie

    Joined:
    Jun 2, 2013
    Messages:
    18
    Likes Received:
    6
    You could easily do that in python. It is easy to learn too.
    Here is how it should look like:

    Code:
    import urllib2
    in_file = open('infile.txt', 'r')
    out_file = open('outfile.txt', 'a')
    for line in in_file.readlines():
        try:
            urllib2.urlopen('page_url%s' % line)
            out_file.write('page_url%s' % line)
        except:
            pass
    
    This exact code will probably not work because I don't know what "check the avability" means but it is close.
     
    • Thanks Thanks x 1
  4. Layhooo

    Layhooo Newbie

    Joined:
    Jun 2, 2013
    Messages:
    23
    Likes Received:
    4
    You could do this in java with knowledge of sockets, file input and output, String substring method, etc..
     
  5. adbnews

    adbnews Newbie

    Joined:
    May 23, 2013
    Messages:
    17
    Likes Received:
    1
    Occupation:
    Quantitative Analyst
    Location:
    New York City
    Python can do that all really easily. And it is arguably the easiest language to write/debug in
     
  6. cpa-marketing

    cpa-marketing Regular Member

    Joined:
    May 31, 2013
    Messages:
    356
    Likes Received:
    108
    haha they are fighting how to do it :p
     
  7. TehEpidemick

    TehEpidemick BANNED BANNED

    Joined:
    Oct 31, 2011
    Messages:
    778
    Likes Received:
    181
    examples or gtfo.

    honestly though thats great.you ask how and get exact code examples. wish it worked for me. VB is what I use and it would also work for this easily.