Repository navigation
Home
Date: 28/01/2023
I want to connect with people on LinkedIn, specifically with those who have done google cloud certifications. connecting with each individual who cleared GCP certifications is kind of a tough task and sending them requests is time-consuming and requires a lot of searches. So as usual I thought we will automate this task using python.
Date: 30/01/2023
- Some unusual behavior of a webpage URL = 'https://googlecloudcertified.credential.net/' ==> need to do more research about Web scraping and its limitations.
Date: 04/06/2023
Problems and Solutions:
-
Problem: Content not loaded in the response. Solution: Switched to using a headless browser like Selenium to interact with dynamically loaded content.
-
Problem: "Error parsing cert retrieved from AIA" and "Couldn't read tbsCertificate as SEQUENCE" errors. Solution: Investigate the cause of the parsing errors and validate the certificate being used.
-
Problem: "ConnectionRefusedError" when making requests. Solution: Wrap requests in a try-except block and handle the exception appropriately, such as retrying the request or logging the error.
-
Problem: Receiving a 999 response code. Solution: Use a proxy, adjust request headers, introduce delays, or employ CAPTCHA-solving services to bypass security measures.
-
Problem: Receiving 429 (Too Many Requests) and 405 (Method Not Allowed) response codes. Solution: Add delays between requests and modify request headers to mimic browser behavior, avoiding rate limits and method restrictions.
-
Problem: The server still returning a 999 response code. Solution: Try additional techniques like rotating IP addresses or utilizing proxy servers to avoid being blocked.
-
Problem: Need to implement session handling. Solution: Utilize the
requests.Session()object to maintain connection and cookies between requests, simulating a natural browsing experience.