Skip to content

πŸ™ Baidu migration data crawling πŸ™ City-level flow migration index πŸ™ City migration in and out index πŸ™ Intra-city commuting index πŸ™ Intra-city leisure and entertainment index, etc. πŸ™ Accurate to city and date

Notifications You must be signed in to change notification settings

kingsley0107/bd_qianxiCrawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ENGLISH δΈ­ζ–‡η‰ˆ

bd_qianxiCrawler

pics

2024.04.01update: only specific period available through the platform, sorry to hear that.

All retrievable data from Baidu Migration:

  • πŸ™ Baidu migration data crawling πŸ™
  • πŸ™ Overall city migration index πŸ™
  • πŸ™ Inter-city migration index πŸ™
  • πŸ™ Migration in and out of a specific city πŸ™
  • πŸ™ Intra-city commuting index πŸ™
  • πŸ™ Intra-city leisure and entertainment index πŸ™
  • πŸ™ Overall travel intensity within a city πŸ™
  • ⌚ Accurate to city and specific date ⌚
  • πŸ’» Time series analysis, city travel, traffic prediction πŸ’»

Current features

  • Crawling historical migration in and out index of specific cities (20190112-now) (Comparison between cities is possible)

  • Crawling city migration in and out rankings and proportions (e.g., 20230307 Shenzhen-Beijing 0.37) (Comparison between cities is not possible)

  • Calculating city migration in and out index (e.g., 20230307 Shenzhen-Beijing 11.23, comparison between cities is possible) (Calculation based on the above two data)

  • Crawling historical intra-city travel intensity index of specific cities (20200104-now)

  • Crawling historical commuting travel intensity index of specific cities (20210122-now)

  • Crawling historical leisure and entertainment travel intensity index of specific cities (20210122-now)

Usage instructions:

  • Modify settings in settings.py:

    • Data scale: 'city'
    • City/Province name: 'Shenzhen' (taken from ./cities/ChineseAdminiDivisionsDict.py)
    • City/Province code: Obtain through get_city_code | get_province_code (can be directly referenced from ChineseAdminiDivisionsDict.py)
    • Migration direction: 'move_in' | 'move_out' (must choose one)
    • Target research date: '20230326' (used for calculating inter-city migration on a specific day, does not affect historical migration index of specific cities)
  • Run main.py, data will be automatically exported to the data folder.

Concat:

For any questions, please contact kingsleyl0107@gmail.com

About

πŸ™ Baidu migration data crawling πŸ™ City-level flow migration index πŸ™ City migration in and out index πŸ™ Intra-city commuting index πŸ™ Intra-city leisure and entertainment index, etc. πŸ™ Accurate to city and date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages