summaryrefslogtreecommitdiff
path: root/4chan_search/pullimgs.py
diff options
context:
space:
mode:
authorthomas grothe <thomas@debian>2023-08-22 01:44:25 -0500
committerthomas grothe <thomas@debian>2023-08-22 01:44:25 -0500
commitedb3ee99f6a0f994bb9ee29ede66a2e0456c9b84 (patch)
tree6e16cbad168e1cd5a5314a1ae1e4a26f5b8eddf9 /4chan_search/pullimgs.py
parent7471e3732c128eec9c993481fdae7b925052d429 (diff)
some updates
Diffstat (limited to '4chan_search/pullimgs.py')
-rwxr-xr-x4chan_search/pullimgs.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/4chan_search/pullimgs.py b/4chan_search/pullimgs.py
new file mode 100755
index 0000000..af09c4c
--- /dev/null
+++ b/4chan_search/pullimgs.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+
+import json
+import requests
+import sqlite3
+import sys
+from wwwimgpull import *
+#####################################################################
+
+if (len(sys.argv) < 2):
+ print('This program will download all of the images on a given 4chan thread. provide URL. ')
+ print('you must provide a search word, or \"*\" for any word.')
+ print('Usage: ./pullimgs.py <url>')
+ sys.exit(0)
+
+url = sys.argv[1]
+for imgurl in pull4chImgs(url):
+ print(imgurl)