-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
58 lines (45 loc) · 1.64 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
auto fetch image in the list from google flickr bing
google
fork from https://gist.github.com/crizCraig/2816295
ref https://developers.google.com/image-search/v1/jsondevguide
flickr
ref https://secure.flickr.com/services/api/misc.urls.html
ref https://secure.flickr.com/services/api/flickr.photos.search.html
ref https://secure.flickr.com/services/api/explore/flickr.photos.search
bing
due to have no appid
dirty hacker
bing.com/images/search?q=lisa&count=10&first=1
re.compile('(?<=a href="/images/search\?q=' + query + '\&view=detail&id=).+?(?=\&FORM= IDFRIR)')
following
re.compile('(?<=<a id="m_fsi" href=").+?(?=" target)')
get full size link
Useage:
edit list.lst
content two column query and num
if num is empty ,num is default 50.
multiwords split by one space ' '
words and num split by more then two spaces
and then
$python2 fetch.py
which website you need ,please uncomment it in fetch.py.
Depands:
wget or aria2c or none
which downloader you have, please uncomment it in gl.py fkr.py bg.py.
Notice:
IF flickr api_key is Error ,please modify fkr.py following the comment
TODO
add UTF8 support ----ok!
add update flickr api_key method ----ok!
add try exception else ----ok!
add multiwords support ----ok!
add interior download without need other download addition ----ok!
add bing image search fetch ----ok!
add aria2 to download the image ----ok!
add flikr image search fetch ----ok!
add read words form list.lst ----ok!
add wget to download the image ----ok!
add google image search fetch ----ok!
enjoy it!
power by lvzongting@gmail.com
西电开源社区