for personal usage.
- 2024-12-20: 修正爬蟲可能被導向空白頁的問題
- python-dotenv
- selenium
- bs4
- pandas
- Create
.env
in root folder. - Go to https://rent.591.com.tw/list and filter your conditions.
- Copy url and paste to
.env
like this:
591_FILTER_URL=<Your url>
- Open terminal and enter this command:
python3 app/five_nine_one/crawler_selenium.py
- Result file will be located at:
static/591recommend.html
andstatic/591normal.html