DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SOLVED: Extract url link from plain text files  (Read 24,523 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
SOLVED: Extract url link from plain text files
« on: August 31, 2011, 05:47 PM »
Extract url link from plain text files

I would like a code to extract from the plain text files in a folder the valid url links to a new txt extension file .

In this case the plain text file may be a eml file or a txt file.

Best Regards

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: SOLVED: Extract url link from plain text files
« Reply #1 on: August 31, 2011, 08:19 PM »
Contro, look at the example given here:  http://www.autohotkey.com/forum/post-7082.html#7082

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: SOLVED: Extract url link from plain text files
« Reply #2 on: August 31, 2011, 08:20 PM »
Running

;D

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: SOLVED: Extract url link from plain text files
« Reply #3 on: August 31, 2011, 08:44 PM »
Goes well for a single file. I would like a group of files.
Consider this result :

http://anuncio=
http://anuncios.ebay.es/post/9625510
http://anuncios.ebay.es/ayuda=
http://www.facebook.com/eb=
http://www.facebook.com/ebayanuncios
http://anuncios.ebay.es/ayuda/contacto/
http://anuncios.ebay.es/post=
http://anuncios.ebay.es/post/9625510
http://anuncios.ebay.es/ayuda/default/seguridad
http://www.f=
http://www.facebook.com
http://www.ebay=

Some url are not sure or seem trunked.

Best Regards

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: SOLVED: Extract url link from plain text files
« Reply #4 on: August 31, 2011, 10:32 PM »
my urlsnooper will do this unless im missing something.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: SOLVED: Extract url link from plain text files
« Reply #5 on: September 01, 2011, 04:10 AM »
Mouser, he wants to extract URLs from EML files.  They're plain-text email files.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: SOLVED: Extract url link from plain text files
« Reply #6 on: September 01, 2011, 08:51 AM »
UrlSnooper is quite happy to scan a directory of files for urls.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: SOLVED: Extract url link from plain text files
« Reply #7 on: September 01, 2011, 12:30 PM »
I didn't realise that URLSnooper would do that.  Very nice.  :Thmbsup:

panzer

  • Participant
  • Joined in 2008
  • *
  • Posts: 941
Re: SOLVED: Extract url link from plain text files
« Reply #8 on: November 11, 2011, 09:12 AM »
I do not want to open a new threat so will ask my question here. How to delete the duplicate url links from txt files so, that the remaining links would stay in the same order as before (no sorting)?

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: SOLVED: Extract url link from plain text files
« Reply #9 on: November 11, 2011, 09:24 AM »
Don't threaten me ...  >:(

panzer

  • Participant
  • Joined in 2008
  • *
  • Posts: 941
Re: SOLVED: Extract url link from plain text files
« Reply #10 on: November 11, 2011, 09:38 AM »
Thread, not threat  ;D ;D ;D

I am glad that I am not the only K-meleon user here ... ;D

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: SOLVED: Extract url link from plain text files
« Reply #11 on: November 11, 2011, 05:18 PM »
Thread, not threat  ;D ;D ;D

I am glad that I am not the only K-meleon user here ... ;D

Hi panzer (you know me from the KM forum but under a different name ...  8) ) - but sorry I can't answer your question  :D

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: SOLVED: Extract url link from plain text files
« Reply #12 on: May 04, 2012, 11:32 AM »
Sorry it's was my fault.
I was revising all the forum posts today and find this i begin.
Wonderful answers and take good note.
Best Regards from Canary Islands.
:tellme:

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: SOLVED: Extract url link from plain text files
« Reply #13 on: May 04, 2012, 01:02 PM »
I do not want to open a new threat so will ask my question here. How to delete the duplicate url links from txt files so, that the remaining links would stay in the same order as before (no sorting)?

I suspect this got lost here panzer -
it might be worth making a new threa[t/d] in coding snacks/new requests ...
Tom

Original address: https://www.donationcoder.com/forum/index.php?topic=27820.0