Skip to content

Instantly share code, notes, and snippets.

@luxu
Created November 23, 2022 18:52
Show Gist options
  • Save luxu/2a945df3f13725af3fd49abc72f22511 to your computer and use it in GitHub Desktop.
Save luxu/2a945df3f13725af3fd49abc72f22511 to your computer and use it in GitHub Desktop.
from requests import get
from parsel import Selector
url = 'https://www.pockettactics.com/deadly-sin-retribution/codes'
resp = get(url)
selector = Selector(text=resp.text)
for r in selector.css('.entry-content').css('ul'):
info = r.css('li > strong::text').getall()
for x in info:
print(x)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment