19 lines
519 B
Python
19 lines
519 B
Python
import sys
|
|
|
|
with open('fotograf-de-scraper/backend/main.py', 'r') as f:
|
|
content = f.read()
|
|
|
|
import re
|
|
|
|
# Find the start of Link Magic
|
|
start = content.find('# --- PHASE 3: Link Magic (Scrape Quick Login URLs) ---')
|
|
end = content.find('return len(df)')
|
|
|
|
if start != -1 and end != -1:
|
|
new_content = content[:start] + content[end:]
|
|
with open('fotograf-de-scraper/backend/main.py', 'w') as f:
|
|
f.write(new_content)
|
|
print("Link magic removed successfully")
|
|
else:
|
|
print("Could not find boundaries")
|