I created an ec2 instance for web scraping purposes. However, I can't scrape any sites with selenium because I get below error :
"selenium.common.exceptions.TimeoutException: Message: connection refused" error.
I think this is to do with the security group settings blocking off websites. So I created a new security group according to this. However, upon doing this, I am not able to ssh into the EC2 instance anymore.
What configuration do I need for my EC2 instance to be able to scrape websites?