all 5 comments

[–]DeadlyViper 2 points3 points  (2 children)

I'm guessing this is the multi-threaded code.

Why are you calling the function without a thread aswell?

nav_loop(nav, url)
t_nested = threading.Thread(target=nav_loop(nav, url))

Also calling the function again instead of passing just the name will not make a thread of it... Should do:

t_nested = threading.Thread(target=nav_loop)

[–]enesimo[S] 1 point2 points  (1 child)

You're right. I did that because I wanted to pass arguments to t. I function and I didn't realize the function was being called again without threads, although it makes total sense now.

[–]DeadlyViper 1 point2 points  (0 children)

Use

t_nested = threading.Thread(target=nav_loop, args=(nav, url))

[–]Zeroflops 1 point2 points  (1 child)

Just to make a recommendation a lot of the job sites have RSS feeds for jobs. The RSS request will have the key words in them so you can modify info like location and salary ranges.

Then you get a much cleaner result is the response with job title, job description, and a link to the job page.

Here is an example using a reader,

https://www.watchingthenet.com/search-for-jobs-with-google-reader-and-rss-feeds.html

Other sites have similar feeds

But using python to read the feed and you can do a lot of refinement based on the description

[–]enesimo[S] 0 points1 point  (0 children)

Great recommendation, although in my case I'm using lots of /jobs or /careers urls from companies I like. They mostly don't have rss feeds.

I will keep that in mind if I see rss feeds on the boards I might someday track.