Skip to content

Commit fe99db3

Browse files
whew
1 parent 9baa1af commit fe99db3

File tree

2 files changed

+101
-1
lines changed

2 files changed

+101
-1
lines changed

clean_links/unshorten.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def request_redirect_chain(
7373
# send and follow the redirect chain, filling in the history
7474
next_prepped = send(session, prepped, history, verify, timeout)
7575
while next_prepped:
76-
next_prepped = send(session, prepped, history, verify, timeout)
76+
next_prepped = send(session, next_prepped, history, verify, timeout)
7777

7878
return history
7979

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Connection:
6+
- keep-alive
7+
accept:
8+
- text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
9+
accept-encoding:
10+
- gzip, deflate, br
11+
accept-language:
12+
- en-US,en;q=0.9
13+
sec-fetch-dest:
14+
- document
15+
sec-fetch-mode:
16+
- navigate
17+
sec-fetch-site:
18+
- same-origin
19+
sec-fetch-user:
20+
- ?1
21+
upgrade-insecure-requests:
22+
- '1'
23+
user-agent:
24+
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML,
25+
like Gecko) Chrome/120.0.0.0 Safari/537.36
26+
method: HEAD
27+
uri: https://ctt.ec/5kum7+
28+
response:
29+
body:
30+
string: ''
31+
headers:
32+
Connection:
33+
- keep-alive
34+
Content-Length:
35+
- '193'
36+
Content-Type:
37+
- text/html
38+
Date:
39+
- Wed, 31 Jan 2024 04:50:01 GMT
40+
Location:
41+
- https://clicktotweet.com/5kum7+
42+
Server:
43+
- nginx/1.4.6 (Ubuntu)
44+
status:
45+
code: 301
46+
message: Moved Permanently
47+
- request:
48+
body: null
49+
headers:
50+
Connection:
51+
- keep-alive
52+
accept:
53+
- text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
54+
accept-encoding:
55+
- gzip, deflate, br
56+
accept-language:
57+
- en-US,en;q=0.9
58+
sec-fetch-dest:
59+
- document
60+
sec-fetch-mode:
61+
- navigate
62+
sec-fetch-site:
63+
- same-origin
64+
sec-fetch-user:
65+
- ?1
66+
upgrade-insecure-requests:
67+
- '1'
68+
user-agent:
69+
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML,
70+
like Gecko) Chrome/120.0.0.0 Safari/537.36
71+
method: HEAD
72+
uri: https://clicktotweet.com/5kum7+
73+
response:
74+
body:
75+
string: ''
76+
headers:
77+
Cache-Control:
78+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
79+
Connection:
80+
- keep-alive
81+
Content-Type:
82+
- text/html
83+
Date:
84+
- Wed, 31 Jan 2024 04:50:01 GMT
85+
Expires:
86+
- Thu, 19 Nov 1981 08:52:00 GMT
87+
Location:
88+
- http://
89+
Pragma:
90+
- no-cache
91+
Server:
92+
- nginx/1.4.6 (Ubuntu)
93+
Set-Cookie:
94+
- PHPSESSID=cnvb41rlbi9f7u1l92fu3abio0; path=/
95+
X-Powered-By:
96+
- PHP/5.5.9-1ubuntu4.29
97+
status:
98+
code: 302
99+
message: Found
100+
version: 1

0 commit comments

Comments
 (0)