assbach Published on October 6, 2008
by assbachpro

assbach's blog

Browse posts
23 incredible Photoshop tutorials (link)
Posted on October 31, 2008
8 comments (latest 12 months ago)
365minutes - Meine Reise
Posted on October 14, 2008
33 comments (latest 12 months ago)
IPhoto Library size and deleting pictures
Posted on October 12, 2008
1 comment (latest 10 months ago)
HOT : The ipernity API is here... finally!
Posted on October 10, 2008
1 comment (latest 13 months ago)
Filtering URLs from Ipernity Album Page
9 comments (latest 13 months ago)
Problems with video upload and encoding here
Posted on September 16, 2008
17 comments (latest 14 months ago)
New Picasa Version 3.0
Posted on September 3rd, 2008
43 comments (latest 10 months ago)
Das artcamp in Hamburg braucht Hilfe
Posted on August 21, 2008
Im Oktober in Berlin
Posted on August 15, 2008
2 comments (latest 15 months ago)

Keyword tags

ipernity
code
howto
365
statistics
sourcecode
textmate

More information

This post is public
Attribution + share Alike
  1. Read 699 times

Filtering URLs from Ipernity Album Page

Monday October 6, 2008 at 02:42PM

I was looking for a way to get all the URLs (Webadresses) for every single 365 video in my Ipernity project album. The ones that are linked with "more info".

I found a way with Textmate that i want to keep in mind for later and maybe it helps you as well.

Here we go ...

1. i saved the source code of that page

2. then i tried to find the part with the links i wanted to strip

3. Then i found that nice filtering feature in the bundles menu-item (selected all the text first - think that is important)

4. this process creates a new document looking like this:

5. all i needed to do now was delete the parts i don't need via find and replace - what made it look like this:

6. last step was to add the absolute part before the /doc/ with anothe search & replace:

result:

And that was what i needed. Maybe there are other ways, but i was happy to find this one, cause it saved me from lots of copy/pasting. :)

9 Comments / add your comment?

Underscan says:
Maybe a little less clicking using the command-line:

wget www.ipernity.com/doc/assbach/album/36145
grep "more info" 36145 | cut --characters=23-42 | sed 's/^/http:\/\/www.ipernity.com/g' | sort > ipernity_album-36145

This will give you a text file called "ipernity_album-36145" containing all the desired links.
Posted 13 months ago. ( permalink )
assbachpro replies:
yep, danke dir. wenn man sowas drauf hat ist das immer das beste - find ich super. ich könnte es nur nicht :) ich weiß was grep ist und macht aber ich bin zu schlecht mit regex und pipes. etc... vielen dank , thanks alot.
Posted 13 months ago. ( permalink / translate )
Underscan replies:
Ich hoffe, das hilft Dir überhaupt. Du bist wohl Mac-Nutzer und da sollte das eigentlich kein Problem sein - sicher bin ich mir aber nicht.
Ansonsten ist das auch nur ein schnell zusammengewürfeltes Befehlssammelsurium und nicht unbedingt fehlertolerant. :)
Posted 13 months ago. ( permalink / translate )
assbachpro replies:
die Idee zählt, ich hab grad alles was ich brauche aber ich probier das mal in ruhe irgendwann aus. hab im shell nur schon bestimmt 10 jahre nichts mehr gemacht :D seit dem bin ich raus.
Posted 13 months ago. ( permalink / translate )
Doomshammer replies:
Ich wuerde "wget -O - " nehmen und direkt an grep pipen... das spart den zwischenschritt ueber die Datei.
Posted 13 months ago. ( permalink / translate )
Doomshammer says:
Ich schmeiss mal das hier in den Raum:
curl www.ipernity.com/doc/assbach/album/36145 | grep "more info" | perl -pe 's|.+href="(/doc/assbach/\d+)/.+|http://www.ipernity.com$1|'

;-)
Posted 13 months ago. ( permalink / translate )
assbachpro replies:
dass DU das kannst war mir klar :D

--
Seen in my account recent activity (?)
Posted 13 months ago. ( permalink / translate )
Doomshammer replies:
lö lö lö lö lö lö :-D
Posted 13 months ago. ( permalink )
Christophe Ruellepro says:
Or you can use the API now LOL LOL LOL
(the API method explorer will get the result in a second)
Posted 13 months ago. ( permalink )

Add your comment

Reply to this comment

Edit your comment

Please sign in to post a comment Sign in now?


rss Latest comments – Subscribe to the feed of comments related to this post.

 

Català | Čeština nové | 中文 | Deutsch | English | Español | Esperanto | Ελληνικά | Français | Galego | Italiano | Nederlands | Português | More...