Python Web Scraping Lines Above Match

后端 未结 0 784
臣服心动
臣服心动 2020-12-21 17:40

I\'m scraping a logs website and trying to find find_this_string. If found, I want to save the 4 lines above it, as well as the one line under the match. What i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题