Skip to content

Instantly share code, notes, and snippets.

@handyman5
Created November 26, 2017 23:14
Show Gist options
  • Save handyman5/92ac1eeeb415da79bbbe2144df8af79d to your computer and use it in GitHub Desktop.
Save handyman5/92ac1eeeb415da79bbbe2144df8af79d to your computer and use it in GitHub Desktop.
: https://practicalguidetoevil.wordpress.com/table-of-contents/
toc_parser: |
[x.get('href') for x in soup.select('div.entry-content a') if 'class' not in x.attrs]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment