How to get access data from other websites for my own. What is the code syntax?
Can you explain us your question in more details? Like exactly what do you want to achieve?
Like getting the weather data from another website.
Well, there are a variety of ways. The simplest is to check if the website in question provides an API that you can access.
Check this site
To obtain data from other websites you can adopt the following two methods:
- Check if the website provides an API. API is basically an interface through which a company provides access to their data and in addition to it also provides control of adding data. For Example, Twitter API enables a user to tweet programmatically.
- Scrapping: if the website does not provide access to data you can scrape the websites for the data. Beware, some websites hold critical data and scraping these websites might cause legal formalities. Anyways, look into Beautiful Soup it is a library for web-scrapping.