Starchik1 commited on
Commit
f066ee3
·
verified ·
1 Parent(s): ed8bf72

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -114,9 +114,8 @@ def proxy(path):
114
  if re.match(r'^[A-Z0-9 ]+$', part_number):
115
  # Create a Google search URL for this part number with avto.pro
116
  google_search_url = f"https://www.google.com/search?q={part_number} avto.pro"
117
- # Update the link's href attribute and add target='_blank'
118
  link['href'] = google_search_url
119
- link['target'] = '_blank'
120
 
121
  # Update image sources to use our proxy
122
  for img in soup.find_all('img'):
 
114
  if re.match(r'^[A-Z0-9 ]+$', part_number):
115
  # Create a Google search URL for this part number with avto.pro
116
  google_search_url = f"https://www.google.com/search?q={part_number} avto.pro"
117
+ # Update the link's href attribute
118
  link['href'] = google_search_url
 
119
 
120
  # Update image sources to use our proxy
121
  for img in soup.find_all('img'):