Recent study python3 reptiles , and read the blogger's blog , have to say, really powerful, easy to understand ^ _ ^
I have a lot to learn ... from basic python knowledge, I was stumped ...
Hey, I record the blind spot ...
It took nearly an hour to test results come out.
- In crawling related html time, text text ≠ [0]
The latter is correct. I always thought that without the effect is the same result, in my opinion is to start from scratch to understand, that from all the relevant content of 0 to tail , in fact my understanding related python basis and do not seek and, possibly reptiles need so? I acquiescence good ...
- In python later in the method () can not be omitted
I learned a few other languages, not parentheses after the method, such as Scala , once I was in the other python programming is feasible ... but when dealing with reptiles code on the error, I have acquiesced in ...
- In class parentheses object is dispensable
This is undoubtedly a python basics ...
- About the python similar in C is printf function to use
Basically the C consistent with the usage, but in reptiles need to crawl content output, you need %% to represent the ... reference to this article , which is saying explains it this way: with the same escape here in% as the format identification mark, but also the question of how one percent itself should be output. To output itself% "tag format string" may be represented by %%.
With file io and requests the module in combination ( x.content () ), can be achieved with urlretrieve function the same effect (to simply enter the URL address).
Summary: need more study.
Original: Large columns on learning in learning python reptile record