- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchExtName.py
More file actions
Latest commit
21 lines (14 loc) · 666 Bytes
/
Copy pathchExtName.py
File metadata and controls
21 lines (14 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
#Author: Mike R
#Date: 1/20/2016
#Purpose: Program to return the name of the Chrome Extension if given the GUID
importurllib2
#Program will go to Chrome Web store and name of extension/app of the desired extensions is in URL.
response=urllib2.urlopen('https://chrome.google.com/webstore/detail/adhdlhedoenicbbncfckobjedmboleig')
site=response.geturl()
#URL returns https://chrome.google.com/webstore/detail/calmly-writer/adhdlhedoenicbbncfckobjedmboleig?hl=en
#Remove https://chrome.google.com/webstore/detail/
newSite=site[42:]
#remove the Extension GUID, everything after the /
head, sep, tail=newSite.partition('/')
printhead