Home > database >  Python crawler
Python crawler

Time:09-22

How can I use this don't know the exact pages, Python cycle to the end? Thank you!

CodePudding user response:

Although did not specify which pages on a page, but to make what page to save your actual loading on the page or variable, loading is the basis, it again
No immortal and the devil, or old technology, just changed a way,

CodePudding user response:

Thank you for your answer, I wanted to loop until no data didn't stop, but I don't know what to do???

CodePudding user response:

reference 1/f, gypsy song response:
although did not specify which pages on a page, but to make what page to save your actual loading on the page or variable, loading is the basis, it again
No immortal and the devil, or old technology, just changed a way,

Thank you for your reply, I want to loop until no data didn't stop, but I don't know what to do

CodePudding user response:

reference 3 floor listening の rain response:
Quote: refer to 1st floor gypsy song response:
although did not specify which pages on a page, but to make what page to save your actual loading on the page or variable, loading is the basis, it again
No immortal and the devil, or old technology, just changed a way,

Thank you for your reply, I want to loop until no data didn't stop, but I don't know what to do


As long as know what page, when the page is not ready to do?
Just record the current page in page 1 pageIndex, behind every point will pageIndex + 1.
This is not difficult to?

CodePudding user response:

reference 4 floor gypsy song response:
Quote: refer to the third floor listening の rain response:

Quote: refer to 1st floor gypsy song response:
although did not specify which pages on a page, but to make what page to save your actual loading on the page or variable, loading is the basis, it again
No immortal and the devil, or old technology, just changed a way,

Thank you for your reply, I want to loop until no data didn't stop, but I don't know what to do


As long as know what page, when the page is not ready to do?
Just record the current page in page 1 pageIndex, behind every point will pageIndex + 1.
This is not difficult to?

So it will run forever, always have a condition to make it stop, I now is to find conditions for him to stop, tried many times, either don't cycle, it will also continue to cycle or even without data, returns an empty list, I'm too food, really don't know how to do

CodePudding user response:

Returns an empty list, it means no data, load more ", "should the button hidden,

Add a little judge things only, want to so much?
  • Related