Created
November 23, 2022 18:52
-
-
Save luxu/2a945df3f13725af3fd49abc72f22511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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