0

I've successfully scrapped a multi page library using “scrapy”. But when I added a yield block only the first web page was scrapped. The page count continued to increase but the web page didn't change What is wrong? Here is the structure of part of the program.

enter code here

.current page = 1 while current_ page < =- last_page product_container = #the container of all the books to be scraped from the current web page

enter code here
 for product in product_container:
    get: 
      book title,
      authors into authorDic,
      narrators into narratorDic        
    yield{
          title': book_title,
          'author': authorsDic,             
          'narrantor': narratorsDic,
    }
 current_page +=1
 get next_ page
 next_page.clickl()    
 '''

 


          
foglerit
  • 7,792
  • 8
  • 44
  • 64
mafox
  • 61
  • 4
  • this question is no really readabale due to mangled formatting of the source code and disregard for indentation – jsbueno Feb 08 '23 at 19:20

0 Answers0