forked from dengyings/biji
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtuifang.py
More file actions
50 lines (38 loc) · 1.26 KB
/
tuifang.py
File metadata and controls
50 lines (38 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 5 14:51:56 2019
@author: tarena
"""
from Leju import Leju
class CopyHouseInfo(object):
def __init__(self,name,posswd,url):
self.name = name
self.posswd = posswd
self.url = url
def Begin(self,url):
newurl = url.split("/")
leju = "fs.esf.leju.com"
ZY = "fs.centanet.com"
TC = "fs.58.com"
Fang = "fs.esf.fang.com"
AJK = "foshan.anjuke.com"
GJ = "fs.ganji.com"
if leju in newurl:
Leju.AutoCopy(self.name, self.passwd, self.url)
elif ZY in newurl:
DoZongyuan(self.name, self.passwd, self.url)
elif TC in newurl:
Do58tongcheng(self.name, self.passwd, self.url)
elif Fang in newurl:
DoFangtianxia(self.name, self.passwd, self.url)
elif AJK in newurl:
DoAjk(self.name, self.passwd, self.url)
elif GJ in newurl:
DoGangji(self.name, self.passwd, self.url)
else:
return "您输入的URL有误,请重新输入."
url = "https://gz.esf.leju.com/detail/13954083/#zn=pc-house-zbfy"
newurl = url.split("/")
a = "gz.esf.leju.com"
if a in newurl:
print("newur")