Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Praneeth Ravuri committed May 29, 2021
1 parent 1c49e36 commit e613bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file removed AmazonProductScraper.exe
Binary file not shown.
4 changes: 3 additions & 1 deletion amazon_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def navigate_to_other_pages(self, product_details):

print("\n>> Page 1 - webpage information extracted")

number_of_pages = self.driver.find_element_by_xpath("(//li[@class='a-disabled'])[3]")
max_number_of_pages = "(//li[@class='a-disabled'])[3]"

number_of_pages = self.driver.find_element_by_xpath(max_number_of_pages)

for i in range(2, int(number_of_pages.text)+1):
# Goes to next page
Expand Down

0 comments on commit e613bb7

Please sign in to comment.