Merge branch 'master' of github.com:limkokhole/pinterest-downloader
merge
This commit is contained in:
27
README.md
27
README.md
@@ -10,10 +10,11 @@ Download all images/videos from Pinterest user/board/section.
|
|||||||
- [x] Error tolerance. Try second resolution if first resolution error.
|
- [x] Error tolerance. Try second resolution if first resolution error.
|
||||||
- [x] Able download both image and video.
|
- [x] Able download both image and video.
|
||||||
- [x] Multi-threads when download images.
|
- [x] Multi-threads when download images.
|
||||||
- [x] Media Filename naming in PinID_Title_Description_[Date].Ext meaningful form. With PinID, you can visit /pin/PinID link and log.
|
- [x] Media Filename naming in PinID_Title_Description_[Date].Ext meaningful form. With PinID, you can visit https://www.pinterest.com/pin/[PinID] in web browser and get more details in log file (PinID without details will not log).
|
||||||
- [x] Media Filename truncate to ... fit maximum filename length automatically. -c to cut if you prefer.
|
- [x] Media Filename truncate to ... fit maximum filename length automatically. -c to cut if you prefer.
|
||||||
- [x] Log PinID, Title, Description, Link, Metadata, [Date] to log-pinterest-downloader.log file since media filename can't fit.
|
- [x] Log PinID, Title, Description, Link, Metadata, [Date] to log-pinterest-downloader.log file since media filename can't fit.
|
||||||
- [x] Unique board/log name with timestamp options.
|
- [x] Unique board/log name with timestamp options.
|
||||||
|
- [x] Proxies options.
|
||||||
|
|
||||||
### Usage:
|
### Usage:
|
||||||
|
|
||||||
@@ -29,28 +30,32 @@ Download all images/videos from Pinterest user/board/section.
|
|||||||
log-pinterest-downloader.log file.
|
log-pinterest-downloader.log file.
|
||||||
|
|
||||||
positional arguments:
|
positional arguments:
|
||||||
path Pinterest username, or username/boardname, or link(
|
path Pinterest username, or username/boardname, or link(
|
||||||
/pin/ may include created time )
|
/pin/ may include created time )
|
||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
-d DIR, --dir DIR Specify folder path/name to store. Default is "images"
|
-d DIR, --dir DIR Specify folder path/name to store. Default is "images"
|
||||||
-j THREAD_MAX, --job THREAD_MAX
|
-j THREAD_MAX, --job THREAD_MAX
|
||||||
Specify maximum threads when downloading images.
|
Specify maximum threads when downloading images.
|
||||||
Default is number of processors on the machine,
|
Default is number of processors on the machine,
|
||||||
multiplied by 5
|
multiplied by 5
|
||||||
-c CUT, --cut CUT Specify maximum length of
|
-c CUT, --cut CUT Specify maximum length of
|
||||||
"_TITLE_DESCRIPTION_DATE"(exclude ...) in filename.
|
"_TITLE_DESCRIPTION_DATE"(exclude ...) in filename.
|
||||||
-bt, --board-timestamp
|
-bt, --board-timestamp
|
||||||
Suffix board directory name with unique timestamp
|
Suffix board directory name with unique timestamp
|
||||||
-lt, --log-timestamp Suffix log-pinterest-downloader.log filename with
|
-lt, --log-timestamp Suffix log-pinterest-downloader.log filename with
|
||||||
unique timestamp. Default filename is log-pinterest-
|
unique timestamp. Default filename is log-pinterest-
|
||||||
downloader.log. Note: Pin id without
|
downloader.log. Note: Pin id without
|
||||||
Title/Description/Link/Metadata/Created_at will not
|
Title/Description/Link/Metadata/Created_at will not
|
||||||
write to log.
|
write to log.
|
||||||
-f, --force Force re-download even if image already exist
|
-f, --force Force re-download even if image already exist
|
||||||
-es, --exclude-section
|
-es, --exclude-section
|
||||||
Exclude sections if download from username or board.
|
Exclude sections if download from username or board.
|
||||||
|
-ps HTTPS_PROXY, --https-proxy HTTPS_PROXY
|
||||||
|
Set proxy for https
|
||||||
|
-p HTTP_PROXY, --http-proxy HTTP_PROXY
|
||||||
|
Set proxy for http
|
||||||
|
|
||||||
### Example Usage:
|
### Example Usage:
|
||||||
$ python3 pinterest-downloader.py # Prompt for insert path
|
$ python3 pinterest-downloader.py # Prompt for insert path
|
||||||
@@ -62,6 +67,8 @@ Download all images/videos from Pinterest user/board/section.
|
|||||||
$ python3 pinterest-downloader.py https://www.pinterest.com/antonellomiglio/computer/ -c 40 # Default already good enough
|
$ python3 pinterest-downloader.py https://www.pinterest.com/antonellomiglio/computer/ -c 40 # Default already good enough
|
||||||
$ python3 pinterest-downloader.py https://www.pinterest.com/antonellomiglio/computer/ -j 666 # Default already fast enough
|
$ python3 pinterest-downloader.py https://www.pinterest.com/antonellomiglio/computer/ -j 666 # Default already fast enough
|
||||||
$ python3 pinterest-downloader.py https://www.pinterest.com/Foodrecipessmith/food-recipes/ -es # Exclude sections
|
$ python3 pinterest-downloader.py https://www.pinterest.com/Foodrecipessmith/food-recipes/ -es # Exclude sections
|
||||||
|
$ python3 pinterest-downloader.py https://www.pinterest.com/Foodrecipessmith/food-recipes/ -ps 'socks4://123.123.123.123:12345' -p 'socks4://123.123.123.123:12345' # set proxies
|
||||||
|
$ pin https://www.pinterest.com/antonellomiglio/computer/ # make alias/function in ~/.bash_aliases(or any shell startup script) to easier type
|
||||||
|
|
||||||
### Example Output:
|
### Example Output:
|
||||||
xb@dnxb:~/Downloads/pinterest/pinterest-downloader$ python3 pinterest-downloader.py -d comp https://www.pinterest.com/antonellomiglio/computer/
|
xb@dnxb:~/Downloads/pinterest/pinterest-downloader$ python3 pinterest-downloader.py -d comp https://www.pinterest.com/antonellomiglio/computer/
|
||||||
|
|||||||
Reference in New Issue
Block a user