13原生爬虫

from urllib import request

class Spider():
    url=''

    def __fetch_content(self):
        r=request.urlopen(Spider.url)
        htmls=r.read()


    def __analysis(self,htmls):
        pass

    def__refine(self,anchors):


    def _sort(self):
        pass

    def __show(self,anchors):
        pass



    def go(self):
        htmls=self.__fetch_content()
        self.__analysis(htmls)

Last updated

Was this helpful?