mirror of
https://github.com/Radiquum/furaffinity-dl.git
synced 2025-04-19 07:44:37 +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
|
# Extact tags
|
||||||
|
try:
|
||||||
for tag in s.find(class_='tags-row').findAll(class_='tags'):
|
for tag in s.find(class_='tags-row').findAll(class_='tags'):
|
||||||
data['tags'].append(tag.find('a').text)
|
data['tags'].append(tag.find('a').text)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# Extract comments
|
# Extract comments
|
||||||
for comment in s.findAll(class_='comment_container'):
|
for comment in s.findAll(class_='comment_container'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue