Skip to content

Commit fc2ddac

Browse files
committed
sleep 5s, so as not to detect spam (hopefully)
1 parent 85be170 commit fc2ddac

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

app.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
if image:
5656
f.write(f"{g_name}|჻|{image}|჻|{text}ᴣᴣᴣ")
5757

58-
# stop after 10 posts
58+
# stop after 10
5959
if i == 10:
6060
break
6161
except Exception as e:
@@ -78,7 +78,7 @@
7878
if image:
7979
f.write(f"{p_name}|჻|{image}|჻|{text}ᴣᴣᴣ")
8080

81-
# stop after 10 posts
81+
# stop after 10
8282
if i == 10:
8383
break
8484
except Exception as e:
@@ -99,21 +99,9 @@
9999
if image:
100100
f.write(f"{search}|჻|{image}|჻|{text}ᴣᴣᴣ")
101101

102-
# stop after 10 posts
102+
# stop after 10
103103
if i == 10:
104104
break
105105

106-
# read results.txt
107-
# try:
108-
# with open('results.txt', 'r', encoding="utf-8") as f:
109-
# # print(f.read())
110-
# # split by ||
111-
# for line in f:
112-
# print(line.split("||")[2])
113-
# except Exception as e:
114-
# print(e)
115-
116106
except Exception as e:
117107
print(e)
118-
119-
# options={"posts_per_page": 5, "allow_extra_requests": False},

0 commit comments

Comments
 (0)