Joining links together in a dictionary

Posted by ptabatt on Stack Overflow See other posts from Stack Overflow or by ptabatt
Published on 2010-05-15T19:52:44Z Indexed on 2010/05/15 19:54 UTC
Read the original article Hit count: 260

Filed under:
|

Hi guys, I'm student here, new to python and programming in general.

I have a dictionary links which holds a tuple mapped to a number. How can I join the second url in the second tuple together with the urljoin() function? What I'm trying to do is get complete links so I can run a recursive function search() which takes a complete url as an arguement, finds all the links in each url and stores the number of links mapped to the links in a database.

So far, I have:

links {('href', 'http://reed.cs.depaul.edu/lperkovic/csc242/test2.html'): 1, ('href', 'test3.html'): 1}

I want http://reed.cs.depaul.edu/lperkovic/csc242/test3.html...

© Stack Overflow or respective owner

Related posts about python

Related posts about database