Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wow! Awesome links. Is there a way to get a bulleted list of all links/articles/posts mentioned in this thread?


You can use my python script [1] to get a list of urls. For example

get_urls.py "https://news.ycombinator.com/item?id=28232165&p=2"

[1] - https://github.com/KamarajuKusumanchi/rutils/blob/master/pyt...


If I were you I'd investigate how you can get the source of this page (for example with a beautiful soup python script) and filter out http* links (for example with python re library) and how to save them somewhere like a flat file (python file operations)

or sage this page as linkstocheckout.html and in a terminal try filtering out urls with grep:

```

grep -Eoi '<a [^>]+>' linkstocheckout.html | grep -Eo 'href="[^\"]+"' | grep -Eo '(http|https)://[^/"]+'

```




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: