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

How to Remove link from scraped tweets

Discussion in 'Twitter' started by Blackwindow, Sep 30, 2015.

  1. Blackwindow

    Blackwindow Junior Member

    Joined:
    Apr 11, 2014
    Messages:
    161
    Likes Received:
    20
    I scraped 100k tweets but they all tweet have links. how to delete this links and add my links? All links different.
     
  2. Olovarno

    Olovarno Registered Member

    Joined:
    Jan 19, 2010
    Messages:
    90
    Likes Received:
    12
    If you have them in a text or csv file, open it in Notepad++, record a macro search for "http:", selecting until end of line and delete and run that macro script until finishing file.

    To add your links, it's better to open csv file in excel, paste your links in a new column and regenerate csv file. It looks like complicated, but after doing it once, you'll get to do it how many times you need.
     
    • Thanks Thanks x 1
  3. rootjazz

    rootjazz Jr. VIP Jr. VIP

    Joined:
    Dec 21, 2012
    Messages:
    693
    Likes Received:
    340
    Occupation:
    Developer
    Location:
    UK
    Home Page:
    You can do it in a regex in notepad++.

    The latest version of Twitterdub (disclaimer: my program, link in sig) has a function to remove links from scraped tweets, it can also replace the link with a link from a provided text file.
     
  4. Plus44

    Plus44 Power Member

    Joined:
    Dec 14, 2014
    Messages:
    663
    Likes Received:
    252
    Gender:
    Male
    Location:
    US