Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
async def YouTubeBrowser(client,message):
import requests
from bs4 import BeautifulSoup
import webbrowser
page=requests.get("https://www.youtube.com/")
soup=BeautifulSoup(page.text,"html.parser")
webbrowser.open("https://www.youtube.com/",new=2)
if webbrowser.open("https://www.youtube.com/",new=2)==True: #status printing
print("Successful browser, see in a few seconds.")
await client.send_message(message.channel,"Successful browser, see in a few seconds.")
print("Status: ",page)
msg="Status: "+str(page)
await client.send_message(message.channel,msg)
else:
print("I'm sorry. The browser isn't working though.")
await client.send_message(message.channel,"I'm sorry. The browser isn't working though.")
print("Status: ",page)
msg="Status: "+str(page)
await client.send_message(message.channel,msg)