Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    making a list of URLs?

    Help wanted · · · – – – · · ·
    code rtgfgftgyhgtkjh urls making a list o rgegtdfy
    2
    2
    630
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bahman Darioush
      Bahman Darioush last edited by

      Hi!There are bunch of pages of a same website. the first one is http://www.theeuropeanlibrary.org/tel4/search?classification-cerif=H000&iyear=[2000 TO 2010]&offset=20 the next one is almost like the firt,but differs in the number at the last,and is 2 times 20 which is 40. so,the number for the 2000th address would be 2000 times 20.Now hw can i make a txt file containing the 2000 addresses which made out of the first one by the rule i said aboveusing notepad ++.

      1 Reply Last reply Reply Quote 0
      • Jim Dailey
        Jim Dailey last edited by Jim Dailey

        I wouldn’t attempt to do this with an editor. I would use a scripting language. For example, in AWK:

        BEGIN {
            Text="http://www...offset="
            Offset = 20
            for (i = 1; i <= 2000; i++) {
                printf("%s%d\n", Text, Offset)
                Offset += 20
            }
            exit
        }
        
        1 Reply Last reply Reply Quote 3
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors