Skip to content

Commit

Permalink
fix uncensored spider javr bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
chunsiyang committed Apr 19, 2020
1 parent 2e01ab1 commit f3805cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/spider/basic_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from PIL import Image

from app.internel.config import ConfigManager
import requests
import app.internel.cache_tools as cacheTools

from app.internel.tools import Tools
Expand Down
5 changes: 3 additions & 2 deletions app/spider/javr.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Javr(UnsensoredSpider):

def __init__(self):
super().__init__()
self.checkUrl = 'https://javr.club/'
self.checkUrl = 'https://javrave.club/'


def search(self, q):
Expand All @@ -27,7 +27,7 @@ def search(self, q):
'获取查询结果页html对象'
qList = q.split(',')
q = q.replace(',', ' ')
baseUrl = 'https://javr.club/page/'
baseUrl = 'https://javrave.club/page/'
query = '/?s=%s' % q
xpathResult = "//div[@class='content']/h3[@class='cactus-post-title entry-title h4']/a/@href"
for page in range(1, 3):
Expand Down Expand Up @@ -85,6 +85,7 @@ def analysisMediaHtmlByxpath(self, html, q):
title = title[0].replace(
'Watch XXX Japanese Porn - ', '').replace(studio, '')
media.update({'m_title': title})
media.update({'m_summary': title})

xpath_poster = "//img[@id='myvidcover']/@src"
post_url_list = html.xpath(xpath_poster)
Expand Down

0 comments on commit f3805cc

Please sign in to comment.