pythonwebsites

Working with site without API using python


I want to work with site using python, but this site hasn't API

What can I do? I'm beginner in python, and i don't know how can I do this Maybe I need to use python library "request"? I really want to do this, but I don't know how


Solution

  • You can use requests library to get html pages content.

    1. Install
    pip install requests
    
    1. Example usage
    import requests
    
    example = requests.get("htpps://example.url")
    print(example)
    # You will receive html content