sweetalert close on custom button click
swal.close()
Here is what the above code is Doing:
1. We’re importing the necessary modules.
2. We’re creating a function called “get_data” that takes in a URL as a parameter.
3. We’re using the requests module to get the data from the URL.
4. We’re using the BeautifulSoup module to parse the data.
5. We’re returning the parsed data.