import logging
logging.basicConfig(level=logging.WARNING)
import os
os.environ['PYWIKIBOT_NO_USER_CONFIG'] = "1"
import pywikibot
import pprint



#https://commons.wikimedia.org/wiki/File:Culvers_stores_by_state.svg
site = pywikibot.Site('commons', 'commons')  # any site will work, this is just an example
#https://commons.wikimedia.org/wiki/File:Culvers_stores_by_state.svg
#authenticate['commons.wikimedia.org'] = ('mmlange','heynow')

page = pywikibot.Page(site, 'File:Culvers_stores_by_state.svg')
pprint.pprint(page)


print("Page text is")
print(str(page.text))
VERBOSE:pywiki:Found 1 commons:commons processes running, including this one.
Page('File:Culvers stores by state.svg')
Page text is
== {{int:filedesc}} ==
{{Information
|Description    ={{en|1=Count of Culvers Stores by State}}
|Source         ={{own}}
|Author         =[[User:mmlange|mmlange]]
|Date           =2018-08-27
|Permission     =
|other_versions =
}}

== {{int:license-header}} ==
{{self|cc-by-4.0}}
[[Category:Culver's]]