You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output links from gallery could be a GalleyImage or GalleryAlbum
8
+
9
+
#### Default
10
+
By default, this will return links to items on the first page (0) with section 'hot' sorted by 'viral', date range is 'day' and show_viral is set to True
11
+
12
+
```python
13
+
items = client.gallery()
14
+
for item in items:
15
+
print(item.link)
16
+
17
+
```
18
+
19
+
**Output**
20
+
21
+
22
+
http://i.imgur.com/dRMIpvS.png
23
+
http://imgur.com/a/uxKYS
24
+
http://i.imgur.com/jYvaxQ1.jpg
25
+
http://i.imgur.com/ZWQJSXp.jpg
26
+
http://i.imgur.com/arP5ZwL.jpg
27
+
http://i.imgur.com/BejpKnz.jpg
28
+
http://i.imgur.com/4FJF0Vt.jpg
29
+
http://i.imgur.com/MZSBjTP.jpg
30
+
http://i.imgur.com/EbeztS2.jpg
31
+
http://i.imgur.com/DuwnhKO.jpg
32
+
...
33
+
34
+
#### With Specific Parameters
35
+
In this example, return links to items on the fourth page (3) with section 'top' sorted by 'time', date range is 'week' and show_viral is set to False
Copy file name to clipboardExpand all lines: README.md
+1-56Lines changed: 1 addition & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,61 +118,7 @@ For more information about rate-limiting, please see the note in our [docs](http
118
118
119
119
Examples
120
120
------------
121
-
122
-
## Anonymous Usage without user authorization
123
-
124
-
### Print links in a Gallery
125
-
Output links from gallery could be a GalleyImage or GalleryAlbum
126
-
127
-
#### Default
128
-
By default, this will return links to items on the first page (0) with section 'hot' sorted by 'viral', date range is 'day' and show_viral is set to True
129
-
130
-
```python
131
-
items = client.gallery()
132
-
for item in items:
133
-
print(item.link)
134
-
135
-
```
136
-
137
-
**Output**
138
-
139
-
140
-
http://i.imgur.com/dRMIpvS.png
141
-
http://imgur.com/a/uxKYS
142
-
http://i.imgur.com/jYvaxQ1.jpg
143
-
http://i.imgur.com/ZWQJSXp.jpg
144
-
http://i.imgur.com/arP5ZwL.jpg
145
-
http://i.imgur.com/BejpKnz.jpg
146
-
http://i.imgur.com/4FJF0Vt.jpg
147
-
http://i.imgur.com/MZSBjTP.jpg
148
-
http://i.imgur.com/EbeztS2.jpg
149
-
http://i.imgur.com/DuwnhKO.jpg
150
-
...
151
-
152
-
#### With Specific Parameters
153
-
In this example, return links to items on the fourth page (3) with section 'top' sorted by 'time', date range is 'week' and show_viral is set to False
0 commit comments