Comments (5)
It is possible but need extra work
The API response a formatted time like "2 mins ago", "yesterday", "6-10", "2018-12-26"
instead of an accurate post time
So a parser is needed, and only date can be extracted without post time
I will add it as soon as possible
from weibopicdownloader.
I added the date information with key 'date'
to the format item
just now
Please replace the default logic with a new naming rule whatever you want to have
weiboPicDownloader/weiboPicDownloader.py
Lines 227 to 231 in f9dd7dd
For your example format (Ex. 20190606_6b084396gw1f8ta9obw9gj20rsbnve84.jpg), the following should work
-- return name
++ return item['date'].strftime('%Y%m%d') + '_' + name
from weibopicdownloader.
Should be better to add as an command option on the script instead of manually modifiy the script, I'm sure a lot of people wanna use this feature :)
from weibopicdownloader.
Use -n
option with argument '{date:%Y%m%d}_{name}'
from weibopicdownloader.
You should put the info in front of the page. People will just put ' -n date '.
from weibopicdownloader.
Related Issues (20)
- Feature request: download by latest successful try HOT 7
- Support date format for boundary option HOT 2
- cant download as date HOT 1
- 每次下载都下不完全 HOT 6
- Logic of platform.version() >= '10.0.14393' is wrong HOT 1
- Download media by keywords HOT 5
- Can`t download the latest photos. HOT 1
- Hi, i got some questions HOT 3
- Adding feature of pulling image/video from a specific date on HOT 8
- Adding at most 18 images support for single blog HOT 7
- Support more than 9 pictures HOT 3
- [Feature Request] Option to download videos only HOT 1
- 请问一下,可以按发微博的日期来爬取吗? HOT 4
- 部分微博不登录无法查看 HOT 1
- As a result of using it, it seems that I cannot get the 'date' value.
- weibo created_at format changed and should be adapted HOT 1
- Weibo changed their UI and the tool can't work anymore
- Friends whose size is 0 after the picture is downloaded look at it HOT 1
- My downloaded photo can't be open due to its little size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weibopicdownloader.