Created
February 24, 2019 07:09
-
-
Save DanNi0130/de361148a4c2d2a0f9fbd05a29aea82f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IDsearch = re.compile(r'vote\?id=(\d+)&') # don’t forget the \ before the ? in the regular expression - certain characters, such as the ? are special in regex and thus need to have an escape character otherwise it will count as part of the regex search | |
threadIDs = IDsearch.findall(str(cleanpagedata)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment