(Oct-05-2020, 08:04 AM)ndc85430 Wrote: What exactly do you mean? What would you expect that code to do if it were possible to write it? Also, why do you need to do something like this? Please give details so people can help you find appropriate solutions.
I need the code to extract data from the web, however the problem is related to creating a single range statement.
for n1, n2 , n3, n4, n5 in range(1,501):
buyer=browser.find_element_by_xpath('/html/body/form/div[4]/div[5]/div/div[4]/table/tbody/tr['f'{n1}'']/td[4]/a')
buyer=buyer.text
seller=browser.find_element_by_xpath('/html/body/form/div[4]/div[5]/div/div[4]/table/tbody/tr['f'{n2}'']/td[5]/a')
seller=seller.text
and so on