{"id":13902978,"url":"https://github.com/lucasxlu/LagouJob","last_synced_at":"2025-07-18T00:33:02.337Z","repository":{"id":130186341,"uuid":"53905995","full_name":"lucasxlu/LagouJob","owner":"lucasxlu","description":"Data Analysis \u0026 Mining for lagou.com","archived":false,"fork":false,"pushed_at":"2019-04-19T01:59:03.000Z","size":29497,"stargazers_count":259,"open_issues_count":1,"forks_count":129,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-08-07T22:35:30.125Z","etag":null,"topics":["data-analysis","data-mining","lagou","machine-learning","nlp","python3","web-crawler"],"latest_commit_sha":null,"homepage":"https://www.zhihu.com/question/36132174/answer/94392659","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasxlu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-15T01:51:57.000Z","updated_at":"2024-07-02T09:14:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"f655a5fd-6487-4a62-9b08-8b0d9f426473","html_url":"https://github.com/lucasxlu/LagouJob","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasxlu%2FLagouJob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasxlu%2FLagouJob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasxlu%2FLagouJob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasxlu%2FLagouJob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasxlu","download_url":"https://codeload.github.com/lucasxlu/LagouJob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226320862,"owners_count":17606367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-analysis","data-mining","lagou","machine-learning","nlp","python3","web-crawler"],"created_at":"2024-08-06T22:01:32.136Z","updated_at":"2024-11-25T11:31:14.041Z","avatar_url":"https://github.com/lucasxlu.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Data Analysis of [Lagou Job](http://www.lagou.com/)\n![Lagou](http://pstatic.lagou.com/www/static/common/widgets/header_c/modules/img/logo_d0915a9.png)\n\n## Introduction\nThis repository holds the code for job data analysis of [Lagou](http://www.lagou.com/). \nThe main functions included are listed as follows: \n\n1. Crawling job data from [Lagou](www.lagou.com), and get the latest information of jobs about Internet.\n2. Proxies are collected from [XiCiDaiLi](https://www.xicidaili.com/nn/1).\n3. Data analysis and visualization.\n4. Crawling job details info and generate word cloud as __Job Impression__.\n5. In order to train a [NLP](http://baike.baidu.com/item/nlp/25220#viewPageContent) task with machine learning, the data of interviewee's comments will be stored in [mongodb](https://docs.mongodb.com/) \n\n\n## Prerequisites\n1. Install 3rd party libraries  \n\n    ```sudo pip3 install -r requirements.txt```\n2. Install [mongodb](https://docs.mongodb.com/) and start [mongodb](https://docs.mongodb.com/) service [optional]\n\n    ```sudo service mongod start```\n\n\n## How to Use\n1. clone this project from [github](https://github.com/lucasxlu/LagouJob.git).\n2. Lagou's anti-spider strategy has been upgrade frequently recently. I suggest you run [proxy_crawler.py](./spider/proxy_crawler.py) to get IP proxies and execute the code with [PhantomJS](http://phantomjs.org/). \n3. run [m_lagou_spider.py](spider/m_lagou_spider.py) to crawl job data, it will generate a collection of Excel files in ```./data``` directory.\n4. run [hot_words_generator.py](analysis/hot_words_generator.py) to cut sentences, it will return __TOP-30__ hot words and wordcloud figure.\n\n\n## Analysis Results\n\u003e ![Image1](https://pic2.zhimg.com/a0c42bc6bd7c8743687ba50305c85821_b.jpg)  \n\u003e ![Image2](https://pic3.zhimg.com/f89ca5a008f8ad84a1a2121888aa10c2_b.jpg)  \n\u003e ![Image3](https://pic1.zhimg.com/85b930c6aff823a3b8ee73973d20f274_b.jpg)  \n\u003e ![Image4](https://pic1.zhimg.com/v2-b5ef151109c8787a0a46efed111d3884_b.png)  \n\u003e ![Image5](https://pic3.zhimg.com/v2-aae9b487a843b00298166b6335b061aa_b.png)  \n\u003e ![Image6](https://pic3.zhimg.com/9c2e99674bcb59e0ff54ca0a3fbe4142_b.jpg)  \n\u003e ![Image7](https://pic3.zhimg.com/6ea06ad7dd376f51e629635a69b09cba_b.jpg)  \n\n\n## Report\n* For technical details, please refer to my answer at [Zhihu](https://www.zhihu.com/question/36132174/answer/94392659). \n* The PDF report can be downloaded from [here](https://lucasxlu.github.io/blog/projects/LagouJob.pdf).\n\n\n## Change Log\n- [V2.0] - 2019.04. Upgraded to [PhantomJS](http://phantomjs.org/) and IP proxies.\n- [V1.2] - 2017.05. Rewrite WordCloud visualization module.\n- [V1.0] - 2017.04. Upgraded to mobile Lagou.\n- [V0.8] - 2016.05. Finish Lagou PC web spider.\n\n\n## LICENSE\n[Apache-2.0](./LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasxlu%2FLagouJob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasxlu%2FLagouJob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasxlu%2FLagouJob/lists"}