Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> print(soup.select('a.hotgame > p.game')).find(class_="game")
- [<p class="game">神魔之塔</p>, <p class="game">Pokemon GO</p>, <p class="game">Garena 傳說對決</p>, <p class="game">Garena 極速領域</p>, <p class="game">Fate/Grand Order</p>, <p class="game">怪物彈珠</p>, <p class="game">荒野亂鬥</p>, <p class="game">超異域公主連結☆Re:Dive</p>, <p class="game">爐石戰記</p>, <p class="game">部落衝突:皇室戰爭</p>]
- Traceback (most recent call last):
- File "<pyshell#8>", line 1, in <module>
- print(soup.select('a.hotgame > p.game')).find(class_="game")
- AttributeError: 'NoneType' object has no attribute 'find'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement