From ab7fff5b609ea8e74f8c3f8e53fed4e23cb066e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9E=9C=E7=9A=9E?= Date: Mon, 17 Aug 2020 00:48:44 +0800 Subject: [PATCH 1/5] Update README.md Doc proxies options. --- README.md | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0182391..bdedda7 100644 --- a/README.md +++ b/README.md @@ -29,28 +29,32 @@ Download all images/videos from Pinterest user/board/section. log-pinterest-downloader.log file. positional arguments: - path Pinterest username, or username/boardname, or link( + path Pinterest username, or username/boardname, or link( /pin/ may include created time ) - + optional arguments: - -h, --help show this help message and exit - -d DIR, --dir DIR Specify folder path/name to store. Default is "images" - -j THREAD_MAX, --job THREAD_MAX + -h, --help show this help message and exit + -d DIR, --dir DIR Specify folder path/name to store. Default is "images" + -j THREAD_MAX, --job THREAD_MAX Specify maximum threads when downloading images. Default is number of processors on the machine, 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. - -bt, --board-timestamp + -bt, --board-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- downloader.log. Note: Pin id without Title/Description/Link/Metadata/Created_at will not write to log. - -f, --force Force re-download even if image already exist - -es, --exclude-section + -f, --force Force re-download even if image already exist + -es, --exclude-section 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: $ python3 pinterest-downloader.py # Prompt for insert path @@ -62,6 +66,7 @@ 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/ -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/ -ps 'socks4://123.123.123.123:12345' -p 'socks4://123.123.123.123:12345' # set proxies ### Example Output: xb@dnxb:~/Downloads/pinterest/pinterest-downloader$ python3 pinterest-downloader.py -d comp https://www.pinterest.com/antonellomiglio/computer/ From dad46e4a45358ffa9bcbd62e08ed994f8da8cb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9E=9C=E7=9A=9E?= Date: Mon, 17 Aug 2020 02:10:41 +0800 Subject: [PATCH 2/5] Suggest alias --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bdedda7..dab582b 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ Download all images/videos from Pinterest user/board/section. $ 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/ -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: xb@dnxb:~/Downloads/pinterest/pinterest-downloader$ python3 pinterest-downloader.py -d comp https://www.pinterest.com/antonellomiglio/computer/ From 1ba29a5fd5d195a5414ee3222083196d75acef7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9E=9C=E7=9A=9E?= Date: Mon, 17 Aug 2020 02:25:11 +0800 Subject: [PATCH 3/5] update pin id description --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dab582b..ebc6fa7 100644 --- a/README.md +++ b/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] Able download both image and video. - [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/ in web browser and get more details in log (PinID without details will not log). - [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] Unique board/log name with timestamp options. +- [x] Proxies options. ### Usage: From 14f85c78097283710ec9cb457536955b76d2c1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9E=9C=E7=9A=9E?= Date: Mon, 17 Aug 2020 02:26:11 +0800 Subject: [PATCH 4/5] pin id --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ebc6fa7..2272c09 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Download all images/videos from Pinterest user/board/section. - [x] Error tolerance. Try second resolution if first resolution error. - [x] Able download both image and video. - [x] Multi-threads when download images. -- [x] Media Filename naming in PinID_Title_Description_[Date].Ext meaningful form. With PinID, you can visit https://www.pinterest.com/pin/ in web browser and get more details in log (PinID without details will not 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 (PinID without details will not log). - [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] Unique board/log name with timestamp options. From 72b5a0352f0839fb3c0e0f2f62edf07e0c30b0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9E=9C=E7=9A=9E?= Date: Mon, 17 Aug 2020 02:30:10 +0800 Subject: [PATCH 5/5] log file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2272c09..c76da7d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Download all images/videos from Pinterest user/board/section. - [x] Error tolerance. Try second resolution if first resolution error. - [x] Able download both image and video. - [x] Multi-threads when download images. -- [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 (PinID without details will not 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] 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.