Skip to content

Commit

Permalink
Merge pull request #34 from udhayprakash/pixeebot/drip-2024-05-05-pix…
Browse files Browse the repository at this point in the history
…ee-python/requests-verify

Verify SSL Certificates for Requests.
  • Loading branch information
udhayprakash committed May 9, 2024
2 parents 7347722 + b6814c5 commit a569333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
print(e)

# How to disable security certificate checks for requests in Python
response = requests.get("https://www.kite.com", verify=False)
response = requests.get("https://www.kite.com", verify=True)
print(response)
# Warning Disabling security checks can potentially compromise the integrity of requests if handled incorrectly. Read more about the requests library and its usage here.

Expand Down
2 changes: 1 addition & 1 deletion python3/16_Web_Services/d_web_scraping/linkedin_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def linkedin_companies_parser(url):
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36"
}
print("Fetching :", url)
response = requests.get(url, headers=headers, verify=False, timeout=5)
response = requests.get(url, headers=headers, verify=True, timeout=5)
formatted_response = response.content.replace("<!--", "").replace("-->", "")
doc = html.fromstring(formatted_response)
datafrom_xpath = doc.xpath(
Expand Down

0 comments on commit a569333

Please sign in to comment.