MCPcopy Index your code
hub / github.com/geekcomputers/Python / request_pull

Function request_pull

insta_monitering/insta_datafetcher.py:82–95  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

80
81 @PorxyApplyingDecorator()
82 async def request_pull(url):
83 data = None
84 print(url)
85 urllib3.disable_warnings()
86 user_agent = {"User-agent": "Mozilla/17.0"}
87 try:
88 data = requests.get(
89 url=url, headers=user_agent, timeout=10, verify=False
90 ).text
91 except Exception as e:
92 print(e)
93 data = None
94 finally:
95 return data
96
97 data = await request_pull(url)
98 if data != None:

Callers 1

datapullpostFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected