I just don't know how to do this...

Discussion in 'Programming General' started by Esuom, Apr 7, 2009.

I just don't know how to do this...
  1. Unread #1 - Apr 7, 2009 at 2:47 PM
  2. Esuom
    Joined:
    May 3, 2007
    Posts:
    1,731
    Referrals:
    2
    Sythe Gold:
    0

    Esuom Guru
    Banned

    I just don't know how to do this...

    I am trying to leech a bunch of web proxy links to help SEO on a site. I have a little problem though...

    I know how to grab the sites, I just don't know how to do it from a text file per line.

    The proxies currently look like this...

    Code:
    <option value="inlinedome.net" style="font-weight:bold; background-color:#FFFF00;">inlinedome.net&nbsp;&nbsp;(US, PHProxy 0.5)
    <option value="hidefromsite.info" style="font-weight:bold; background-color:#FFFF00;">hidefromsite.info&nbsp;&nbsp;(US, Glype)
    <option value="heeky.com" style="font-weight:bold; background-color:#FFFF00;">heeky.com&nbsp;&nbsp;(US, PHProxy 0.5)
    Now, I know how to grab the string between value=" and " style and save it to a text file but I don't know how to then have it move down a line on the original text file and leech that one.



    Anyone help? Maybe an example source code?
     
  3. Unread #2 - Apr 7, 2009 at 6:47 PM
  4. mopar-user
    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0

    mopar-user Guru
    Banned

    I just don't know how to do this...

    You want to write it to the end of a text file?
     
  5. Unread #3 - Apr 8, 2009 at 9:25 AM
  6. Esuom
    Joined:
    May 3, 2007
    Posts:
    1,731
    Referrals:
    2
    Sythe Gold:
    0

    Esuom Guru
    Banned

    I just don't know how to do this...

    No, I want it to read a line from a file as a string, use that string for a moment, and then repeat but with the next line down.
     
  7. Unread #4 - Apr 8, 2009 at 10:35 AM
  8. mopar-user
    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0

    mopar-user Guru
    Banned

    I just don't know how to do this...

    ok getline the file contents into a vector with a for loop. Then use the contents as needed....
     
  9. Unread #5 - Apr 8, 2009 at 11:37 AM
  10. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    I just don't know how to do this...

    You can remove the front part, and remove everything after the "...
     
  11. Unread #6 - Apr 12, 2009 at 2:06 PM
  12. phil4387
    Joined:
    Apr 12, 2009
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    phil4387 Newcomer

    I just don't know how to do this...

< Runescape Account Checker | Help Wanted :\ >

Users viewing this thread
1 guest


 
 
Adblock breaks this site