import pywikibot
import pandas as pd 
site = pywikibot.Site('en', 'wikipedia')  # The site we want to run our bot on
page = pywikibot.Page(site, '?curid=18630637')
print(page.full_url())  # page link 
https://en.wikipedia.org/wiki/%3Fcurid%3D18630637
page.full_url
<bound method BasePage.full_url of Page('?curid=18630637')>
user = pywikibot.User(site, 'Nicozheng')
list(user.contributions())
[(Page('Talk:Douglas Adams'),
  800015064,
  Timestamp(2017, 9, 11, 3, 59, 52),
  '/* wikibot testing */ new section'),
 (Page('Wikipedia:Sandbox'),
  799979617,
  Timestamp(2017, 9, 10, 23, 28, 29),
  'added a test sentence')]
text = page.text
print(text)
Hello, I started contributing to Wikipedia in December, 2014. I am a librarian and historian.

<hr>

<H2>My To-Do List</H2>
* Check [[Alice Lee Jemison]] after getting two ILL books
* Work on [[Wikipedia:WikiProject_Women_scientists/Worklist#Articles_to_be_created]]
* Try to find birth day for [[Kristine Yaffe]] and [[Christy A. Tremonti]] in Biography Index or Who's Who?
* Seems like the [[Iroquois]] article could still use more about modern-day tribes, and disambiguation of present from future. 
* [[Structural Equation Modeling]]
* [[Breakup_of_the_Bell_System#Evolution_of_the_Baby_Bells]] could use more citations!

<H2>Contributions (auto-generated)</H2>
* [[Special:Contributions/Sharp-shinned.hawk|All Contributions]]
* [[Special:RecentChangesLinked/User:Sharp-shinned.hawk|Related Changes Linked to Me]]


<H2>[[User:Sharp-shinned.hawk/sandbox|My Sandbox]]</H2>
I put drafts here of articles I write / major contributions I make