mirror of
https://github.com/Coding-Doctor-Omar/ShopExtract.git
synced 2026-06-07 07:55:18 +02:00
Remove duplicate impersonation from line 468
This commit is contained in:
parent
6f76fbf020
commit
722185d3e3
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -465,7 +465,7 @@ async def get_scrape_url(store_url: str, session: AsyncSession) -> str:
|
|||
|
||||
if not products_endpoint:
|
||||
try:
|
||||
res = await session.get(base_url, impersonate="edge")
|
||||
res = await session.get(base_url)
|
||||
|
||||
# Use regex to find the <STORE>.myshopify.com/products.json URL of the Shopify store in case the normal /products.json is blocked.
|
||||
public_store_name = list(set(re.findall(pattern=r'\b([a-zA-Z0-9-]+)\.myshopify\.com\b', string=res.text)))[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue