mirror of
https://gh.wpcy.net/https://github.com/SoloSynth1/wordpress-scraper.git
synced 2026-04-24 11:01:46 +08:00
7 lines
226 B
Python
7 lines
226 B
Python
import re
|
|
|
|
|
|
# unused function to remove characters before JSON response, might be useful later
|
|
def remove_leading_scripts(response_text):
|
|
cleaned_text = re.search(r'(\[.*)', response_text)
|
|
return cleaned_text.group(1)
|