I'm learning to do some network stuff in Python and as an exercise, I want to try and query the Wikipedia API and extract the links from the references section. Can you help? 
system
main paythan main kuch network saamaan karnaa sikh rahaa hum or ek vyaayaam ke rup main, main vikipedia epiai kii koshish karnaa or queri karnaa chahta hum or sandarbh anubhag se link nikaalnaa chahta hum.kya aap madad kar sakate hai?
user
nishchit rup se!ham vikipedia epiai or HTML parsing package beautiphul ko sandarbh dene ke liye ek anurodh karne ke liye paythan request modul kaa upyog karenge.

aayaat anurodh
BS4 se Beautifulumporsoup aayaat karen

# anurodh karne ke liye lekh kaa sheershak
sheershak = "paythan (programing bhashaa)"

# vikipedia epiai yuarel
url = f "https://en.wikipedia.org/w/api.php?action=parse&page=_title }&prop=text&format=json"

# ek anurodh bhejein
pratikriya = requests.get (url)

# pratikriya ko pars karen
data = response.json ()
html = data ["pars"] ["paath"] ["*"]
soup = beautifulsoup (html, "html.parser")

# sabhi <cite> tag khojein or URL nikaalen
urls = []
soup main uddhrut karne ke liye.
        url = cite.find ("a"). get ("href")
        # aantarik URL or aanshik URL ko andekha karen
        yadi url.startswith ("http") yaa "wikipedia.org" url main nahin he:
            jari rakhana
        urls.append (url)

# prayek URL ko consol par print karen
URL main URL ke liye:
    print (URL)

aashaa he yah madad karegaa!agar aapke paas koi anya sawaal he to mujhe bataaen.
assistant
<|system|>
</s>
<|user|>
main paythan main kuch network saamaan karnaa sikh rahaa hum or ek vyaayaam ke rup main, main vikipedia epiai kii koshish karnaa or queri karnaa chahta hum or sandarbh anubhag se link nikaalnaa chahta hum.kya aap madad kar sakate hai?</s>
<|assistant|>
nishchit rup se!ham vikipedia epiai or HTML parsing package beautiphul ko sandarbh dene ke liye ek anurodh karne ke liye paythan request modul kaa upyog karenge.

aayaat anurodh
BS4 se Beautifulumporsoup aayaat karen

# anurodh karne ke liye lekh kaa sheershak
sheershak = "paythan (programing bhashaa)"

# vikipedia epiai yuarel
url = f "https://en.wikipedia.org/w/api.php?action=parse&page=_title }&prop=text&format=json"

# ek anurodh bhejein
pratikriya = requests.get (url)

# pratikriya ko pars karen
data = response.json ()
html = data ["pars"] ["paath"] ["*"]
soup = beautifulsoup (html, "html.parser")

# sabhi <cite> tag khojein or URL nikaalen
urls = []
soup main uddhrut karne ke liye.
        url = cite.find ("a"). get ("href")
        # aantarik URL or aanshik URL ko andekha karen
        yadi url.startswith ("http") yaa "wikipedia.org" url main nahin he:
            jari rakhana
        urls.append (url)

# prayek URL ko consol par print karen
URL main URL ke liye:
    print (URL)

aashaa he yah madad karegaa!agar aapke paas koi anya sawaal he to mujhe bataaen.</s>
