Esempio n. 1
0
    def parse_video_tags(self, soup: BeautifulSoup, url: URL):
        # info_box=soup.find('div',{'class':'content-container'})
        for info_box in _iter(
                soup.find_all('div', {'class': 'content-container'})):
            # psp(info_box.prettify())
            for href in _iter(info_box.find_all('a', href=True)):
                psp(href.prettify())
                label = collect_string(href)
                href_url = URL(href.attrs['href'], base_url=url)
                print(label, href_url)

                color = None

                if href_url.contain('/users/'):
                    color = 'blue'
                    href_url = URL(href_url.get() + '/videos/public/')

                if href_url.contain('/pornstar/'):
                    color = 'red'

                self.add_tag(label, href_url, style=dict(color=color))
Esempio n. 2
0
    def parse_video_tags(self, soup: BeautifulSoup, url: URL):
        container = soup.find('div', {'class': 'extra-detail'})
        # psp(container.prettify())

        for values in _iter(container.find_all('div', {'class': 'values'})):
            for xref in _iter(values.find_all('a')):
                # psp(xref)
                href = URL(xref.attrs['href'], base_url=url)
                if href.contain('/pornstar/'):
                    style = dict(color='red')
                else:
                    style = None

                self.add_tag(str(xref.string), href, style=style)
Esempio n. 3
0
    def parse_video(self, soup: BeautifulSoup, url: URL):
        head = soup.find('head')
        if head:

            script = head.find('script', text=lambda x: 'streams:' in str(x))
            if script is not None:
                data = str(script).replace(' ', '')
                sources = quotes(data, 'streams:[{', '}]').split('},{')
                for f in sources:
                    label = quotes(f, 'id:"', '"')
                    url = URL(quotes(f, 'url:"', '"'), base_url=url)
                    if url.contain('.mp4'):
                        self.add_video(label, url)
                self.set_default_video(-1)
Esempio n. 4
0
    def continue_parse_video_tags(self, fldata: FLData):
        # print(fldata.text)
        soup = BeautifulSoup(fldata.text, 'html.parser')
        # psp(soup.prettify())

        for data in _iter(soup.find_all('div', {'class': 'ibData'})):
            for xref in _iter(data.find_all('a')):
                # psp(xref)
                href = URL(xref.attrs['href'], base_url=fldata.url)
                if href.contain('/pornstar/'):
                    style = dict(color='red')
                else:
                    style = None

                self.add_tag(str(xref.string), href, style=style)

        self.waiting_data = False
        self.generate_video_view()
Esempio n. 5
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('yourporn.sexy/')
Esempio n. 6
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('motherless.com/')
Esempio n. 7
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('deviantclip.com/')
Esempio n. 8
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('spankwire.com/')
Esempio n. 9
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('teenport.com/')
Esempio n. 10
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('fuskator.com/')
Esempio n. 11
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('24videos.tv/')
Esempio n. 12
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('bravoerotica.com/')
Esempio n. 13
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('tnaflix.com/')
Esempio n. 14
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('plusone8.com/')
Esempio n. 15
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('pervertslut.com/')
Esempio n. 16
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('sextube.nl/')
Esempio n. 17
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('realgfporn.com/')
Esempio n. 18
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('shockingmovies.com/')
Esempio n. 19
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('babesandbitches.net/')
Esempio n. 20
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('pornbraze.com/')
Esempio n. 21
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('beemtube.com/')
Esempio n. 22
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('vibraporn.com/')
Esempio n. 23
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('sexix.net/')
Esempio n. 24
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('xhamster.com/')
Esempio n. 25
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('tomorrowporn.com/')
Esempio n. 26
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('thumbzilla.com/')
Esempio n. 27
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('veronicca.com/')
Esempio n. 28
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('collectionofbestporn.com/')
Esempio n. 29
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('donfreeporn.com/')
Esempio n. 30
0
 def can_accept_url(url: URL) -> bool:
     return url.contain('heavy-r.com/')