mirror of
https://github.com/Radiquum/furaffinity-dl.git
synced 2025-04-09 01:34:38 +00:00
Merge pull request #68 from bog4t/python
fixed exception for posts with no tags
This commit is contained in:
commit
0eff94d29a
1 changed files with 5 additions and 2 deletions
|
@ -132,8 +132,11 @@ def download(path):
|
|||
}
|
||||
|
||||
# Extact tags
|
||||
for tag in s.find(class_='tags-row').findAll(class_='tags'):
|
||||
data['tags'].append(tag.find('a').text)
|
||||
try:
|
||||
for tag in s.find(class_='tags-row').findAll(class_='tags'):
|
||||
data['tags'].append(tag.find('a').text)
|
||||
except:
|
||||
pass
|
||||
|
||||
# Extract comments
|
||||
for comment in s.findAll(class_='comment_container'):
|
||||
|
|
Loading…
Add table
Reference in a new issue