[WTH]text manipulation app/script needed - any coding language

Discussion in 'Programming' started by Ithilnet, Nov 11, 2007.

  1. #1
    I need an application or a script to manipulate and combine some text.

    Given 5 inputs the app would have to combine them in a precise way and generate an html code.

    inputs:

    1.
    Some text

    2.
    A list of URLs

    3.
    Something

    4.
    A list of keywords (100-10000)

    5.
    Other text

    Plus I want to specify how many keywords per URL and keywords MUST be picked up randomly from the list

    HTML output:


    
    [Some text]
    
    <a href="http://[URL1]/">
    <a href="http://[URL2]/">
    <a href="http://[URL3]/">
    <a href="http://[URL4]/">
    <a href="http://[URL5]/">
    
    <a href="http://[URL1]/[Something]">
    <a href="http://[URL2]/[Something]">
    <a href="http://[URL3]/[Something]">
    <a href="http://[URL4]/[Something]">
    <a href="http://[URL5]/[Something]">
    
    [Other text] for <a href="http://[URL1]/">
    
    <a href="http://[URL1]/random+keyword+1">random keyword 1</a> <a href="http://[URL1]/random+keyword+2">random keyword 2</a> <a href="http://[URL1]/random+keyword+3">random keyword 3</a> <a href="http://[URL1]/random+keyword+4">random keyword 4</a> <a href="http://[URL1]/random+keyword+5">random keyword 5</a>
    
    
    [Other text] for <a href="http://[URL2]/">
    <a href="http://[URL2]/random+keyword+1">random keyword 1</a> <a href="http://[URL2]/random+keyword+2">random keyword 2</a> <a href="http://[URL2]/random+keyword+3">random keyword 3</a> <a href="http://[URL2]/random+keyword+4">random keyword 4</a> <a href="http://[URL2]/random+keyword+5">random keyword 5</a>
    
    
    [Other text] for <a href="http://[URL3]/">
    
    <a href="http://[URL3]/random+keyword+1">random keyword 1</a> <a href="http://[URL3]/random+keyword+2">random keyword 2</a> <a href="http://[URL3]/random+keyword+3">random keyword 3</a> <a href="http://[URL3]/random+keyword+4">random keyword 4</a> <a href="http://[URL3]/random+keyword+5">random keyword 5</a>
    
    
    [Other text] for <a href="http://[URL4]/">
    
    <a href="http://[URL4]/random+keyword+1">random keyword 1</a> <a href="http://[URL4]/random+keyword+2">random keyword 2</a> <a href="http://[URL4]/random+keyword+3">random keyword 3</a> <a href="http://[URL4]/random+keyword+4">random keyword 4</a> <a href="http://[URL4]/random+keyword+5">random keyword 5</a>
    
    
    [Other text] for <a href="http://[URL5]/">
    
    <a href="http://[URL5]/random+keyword+1">random keyword 1</a> <a href="http://[URL5]/random+keyword+2">random keyword 2</a> <a href="http://[URL5]/random+keyword+3">random keyword 3</a> <a href="http://[URL5]/random+keyword+4">random keyword 4</a> <a href="http://[URL5]/random+keyword+5">random keyword 5</a>
    
    
    Code (markup):

    Example

    INPUT

    some text:
    hi, how are you?

    list of urls:
    http://www.google.com/
    http://www.yahoo.com/
    http://www.msn.com/

    something:
    search

    keyword list:
    internet marketing
    digital camera
    nokia cellphone
    samsung cellphone
    apple iphone
    microsoft
    bill gates
    nintendo wii
    mario strikers
    woot
    chinese restaurant
    web forum
    technology
    space shuttle
    italian course
    italian food
    mc donald

    other text:
    Community results

    keywordS per URL:
    5

    OUTPUT:

    
    <p>hi, how are you?</p>
    
    <a href="http://www.google.com/">
    <a href="http://www.yahoo.com/">
    <a href="http://www.msn.com/">
    
    
    <a href="http://www.google.com/search">
    <a href="http://www.yahoo.com/search">
    <a href="http://www.msn.com/search">
    
    
    Community results for <a href="http://www.google.com/">
    
    <a href="http://www.google.com/internet+marketing">internet marketing</a> <a href="http://www.google.com/space+shuttle">space shuttle</a> 
    <a href="http://www.google.com/chinese+restaurant">chinese restaurant</a> <a href="http://www.google.com/woot">woot</a> 
    <a href="http://www.google.com/bill+gates">bill gates</a>
    
    
    Community results for <a href="http://www.yahoo.com/">
    
    <a href="http://www.yahoo.com/nintendo+wii">nintendo wii</a> <a href="http://www.yahoo.com/italian+food">italian food</a> 
    <a href="http://www.yahoo.com/italian+course">italian course</a> <a href="http://www.yahoo.com/apple+iphone">apple iphone</a> 
    <a href="http://www.yahoo.com/web+forum">web forum</a>
    
    
    Community results for <a href="http://www.msn.com/">
    
    <a href="http://www.msn.com/mario+strikers">mario strikers</a> <a href="http://www.msn.com/italian+course">italian course</a> 
    <a href="http://www.msn.com/nokia+cellphone">nokia cellphone</a> <a href="http://www.msn.com/technology">technology</a> 
    <a href="http://www.msn.com/digital+camera">digital camera</a>
    
    Code (markup):
    Send me a PM with a quote for this work.
     
    Ithilnet, Nov 11, 2007 IP
  2. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Hi,

    I can do this, sent you a PM.

    Thanks
     
    LeopardAt1, Nov 11, 2007 IP