Skip to content

Commit 6603521

Browse files
quir driver to prevent memory leak
1 parent 8d596b0 commit 6603521

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

djangoapp/app/app/core/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def scraping_dentalspeed_selenium(request, query):
102102
'price': product.find_element_by_xpath('.//span[@itemprop="price"]').text
103103
})
104104
pprint(res)
105+
driver.quit()
105106
time.sleep(1)
106107

107108
return Response(res)

0 commit comments

Comments
 (0)