neighborhood999 / fiven1-rent-scraper Goto Github PK
View Code? Open in Web Editor NEW🏠 a.k.a 591 rent scraper(591 租屋網爬蟲)
Home Page: https://fiven1-quick-look.vercel.app
License: MIT License
🏠 a.k.a 591 rent scraper(591 租屋網爬蟲)
Home Page: https://fiven1-quick-look.vercel.app
License: MIT License
目前觀察到,有 VIP Label 的資訊沒有被爬下來
strconv.Atoi
: parsing "1,918": invalid syntax
version: 1.12.4
error messages:
# github.com/neighborhood999/fiveN1-rent-scraper
./rent.go:126:9: undefined: pangu.SpacingText
您好,我對於 rent.go 的源碼有一點疑問
// NewFiveN1 create a `FiveN1` with default value.
func NewFiveN1(url string) *FiveN1 {
return &FiveN1{
queryURL: url,
RentList: make(map[int][]*HouseInfo),
client: &http.Client{},
cookie: &http.Cookie{
Name: "urlJumpIp",
Value: "1",
},
}
}
其中 cookie 的 Value 是不是要跟著參數進來呀,這才是搜索地區的真正參數
比如
// NewFiveN1 create a `FiveN1` with default value.
func NewFiveN1(url string, region int) *FiveN1 {
return &FiveN1{
queryURL: url,
RentList: make(map[int][]*HouseInfo),
client: &http.Client{},
cookie: &http.Cookie{
Name: "urlJumpIp",
Value: strconv.Itoa(region),
},
}
}
Line 40 in 313a0d7
If less 30 record, we can't find .page-limit > .pageBar > .TotalRecord > .R
this element.
Lines 46 to 48 in 164f8e8
這裡不使用 int
類型,改用 string
,當選擇其中任意條件時,才帶入參數 1
,否則為空值。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.