Posts

Showing posts from January 25, 2019

Grammer correction needed

Image
up vote -1 down vote favorite I have recently joined a company , my manager has asked me to send a introductory email which he will forward to all employees in company. I have came up with a email but I think it has issues and its not fluent. can you guys please suggest some modifications on the same? Hi, I’m Manish, I recently joined Company A as Lead software engineer and I’m excited to explore new challenges with Company A. I moved from California where I was working for Company B, prior to that I was working in Singapore for an investment bank. I’m interested in mobile application development, system design, scaling, and security. I have experienced snow only twice when I was a kid and visited Kashmir and 1 yr. back when I hiked on Mount Shasta, so I’m excited about this winter/snow season and learning snow sports

How to handle InvalidSchema exception

Image
up vote 1 down vote favorite I've written a script in python using two functions within it. The first function get_links() fetches some links from a webpage and returns those links to another function get_info() . At this point the function get_info() should produce the different shop names from different links but It throws an error raise InvalidSchema("No connection adapters were found for '%s'" % url) . This is my try: import requests from urllib.parse import urljoin from bs4 import BeautifulSoup def get_links(url): response = requests.get(url) soup = BeautifulSoup(response.text,"lxml") elem = soup.select(".info h2 a[data-analytics]") return get_info(elem) def get_info(url): response = requests.get(url) print(response.url) soup = BeautifulSou