Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
harryhare committed Jul 13, 2021
1 parent 71d2061 commit a3f415b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/get_credit_ubuntu_flaresolverr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
--data-raw '{
"cmd": "request.get",
"url":"https://www.1point3acres.com/bbs/",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleW...",
"maxTimeout": 60000
}' > flaresolverr.json
Expand Down
124 changes: 62 additions & 62 deletions flaresolverr.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/raw_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import get_cf_clearance

# user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleW..."
#user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"

referer = "https://www.1point3acres.com/bbs/"

Expand Down Expand Up @@ -69,7 +70,7 @@ def get_login_info_() -> (str, str):
}
# proxy = CFProxy(worker, user_agent, ip)
cookie_jar = requests.cookies.RequestsCookieJar()
#cookie_jar.update(basic_cookie)
cookie_jar.update(basic_cookie)
response = requests.get("https://www.1point3acres.com/bbs/", headers=header, cookies=cookie_jar)
# response = proxy.get("https://www.1point3acres.com/bbs/", headers=header)
if (response.status_code == 503):
Expand Down

0 comments on commit a3f415b

Please sign in to comment.