Merge pull request #448 from yzqzss/patch-1

Match single quotes too when scraping namespaces
pull/466/head
nemobis 12 months ago committed by GitHub
commit 674381c27c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -170,7 +170,7 @@ def getNamespacesScraper(config={}, session=None):
# [^>]*? to include selected="selected"
m = re.compile(
r'<option [^>]*?value="(?P<namespaceid>\d+)"[^>]*?>(?P<namespacename>[^<]+)</option>').finditer(raw)
r'<option [^>]*?value=[\'"](?P<namespaceid>\d+)[\'"][^>]*?>(?P<namespacename>[^<]+)</option>').finditer(raw)
if 'all' in namespaces:
namespaces = []
for i in m:

Loading…
Cancel
Save