mirror of
https://github.com/Radiquum/furaffinity-dl.git
synced 2025-04-07 00:34:38 +00:00
Scrape more metadata
The script now scrapes category, type, species and gender as well
This commit is contained in:
parent
972dacb5bd
commit
c6da43bf66
1 changed files with 5 additions and 1 deletions
|
@ -91,6 +91,10 @@ def download_file(path):
|
||||||
'title': title,
|
'title': title,
|
||||||
'description': s.find(class_='submission-description').text.strip().replace('\r\n', '\n'),
|
'description': s.find(class_='submission-description').text.strip().replace('\r\n', '\n'),
|
||||||
"tags": [],
|
"tags": [],
|
||||||
|
'category': s.find(class_='info').find(class_='category-name').text,
|
||||||
|
'type': s.find(class_='info').find(class_='type-name').text,
|
||||||
|
'species': s.find(class_='info').findAll('div')[2].find('span').text,
|
||||||
|
'gender': s.find(class_='info').findAll('div')[3].find('span').text,
|
||||||
'views': int(s.find(class_='views').find(class_='font-large').text),
|
'views': int(s.find(class_='views').find(class_='font-large').text),
|
||||||
'favorites': int(s.find(class_='favorites').find(class_='font-large').text),
|
'favorites': int(s.find(class_='favorites').find(class_='font-large').text),
|
||||||
'rating': s.find(class_='rating-box').text.strip(),
|
'rating': s.find(class_='rating-box').text.strip(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue