Importing Data from the Web

Importing data from the web can be particularly useful whether it be images for machine learning or data from tables and so forth. Here is a list of methods for importing data from the web.

Importing Data from the Web Using Python 3

Scraping Content from Websites

Importing Images from Bing

def search_images_bing(key, term, max_images: int = 100, **kwargs):    
    params = {'q':term, 'count':max_images}
    headers = {"Ocp-Apim-Subscription-Key":key}
    search_url = ""
    response = requests.get(search_url, headers=headers, params=params)
    search_results = response.json() 
    # returns an L object to be identical to the original function.
    return L(search_results['value'])