Imperceptibly, October has passed, the legendary gold nine silver ten recruitment season should also be over, do not know the friends who have to change jobs have found the ideal next, anyway, I did not

Warning: this course is only used for learning communication, do not use for commercial profit, the consequences are responsible! If this article has violated the privacy or interests of any organization group company, please contact to delete!!

As a result, I once again turn Boss direct hire, I just want to see, in the end what kind of work is better to find a job. Of course, there are too many kinds of jobs here, so I selected Python, Java, data analysis and product manager to do a simple analysis.

To get the data

I wrote a previous article about getting Boss data, which can be viewed here. However, some people later reported that Cookies expire too quickly, and this was true after I tried them myself. In this case, Selenium is a better choice.

Since the site’s page structure has not changed, the code used to parse web pages is basically reusable, but has changed from BS4 to WebDriver

def get_jobs(page, city, job_type):

    Chrome_driver = webdriver.Chrome(options=options)
    c_code = city_code[city]
    for i in range(1, page + 1):

        try:
            print("Fetching data on page %s" % i)
            uri = '/%s/? query=%s&page=%s' % (c_code, job_type, i)
            Chrome_driver.get(config.url + uri)
...
Copy the code

Also note here that the Boss site detects whether the browser is under Selenium control, so we will add a configuration to bypass this detection

from selenium.webdriver import ChromeOptions

options = ChromeOptions()
options.add_experimental_option('excludeSwitches'['enable-automation'])
Copy the code

Then you can run the program and wait for it to finish

if __name__ == '__main__':
    for i in city_code.keys():
        get_jobs(10, i, 'python')
        get_jobs(10, i, 'java')
        get_jobs(10, i, 'Data analysis')
        get_jobs(10, i, 'Product Manager')
Copy the code

I only took the first 10 pages of each post. After all, when we look at jobs, we don’t look beyond the first 10 pages

As for cities, I chose the following cities

city_code = {
    'beijing': 'c101010100'.'shanghai': 'c101020100'.'guangzhou': 'c101280100'.'shenzhen': 'c101280600'.'hangzhou': 'c101210100'.'xian': 'c101110100'.'wuhan': 'c101200100'.'chengdu': 'c101270100'.'nanjing': 'c101190100'
}
Copy the code

Overall analysis of recruitment salary

First, let’s take a look at the salary comparison between different cities for the same job. No comparison, no harm

As can be seen from the figures in the chart, the average salary in Beijing, Shanghai, Shenzhen and Hangzhou is higher than that in other cities, so it should be on the first rung of the ladder. The so-called “Beijing, Shanghai, Guangzhou and Shenzhen” may soon become a thing of the past.

At the same time, it can also be seen that although Python has become popular in recent years, the salary is relatively not very high. None of the cities has more than 30K salary. Compared with Java in Hangzhou, data analysis in Shenzhen and product manager in Beijing, Python is still too weak.

Overall, product manager is the best paid job overall, and your enemies are going to beat you, whether they’re programmers or not.

Now let’s take a look at the degree of demand for different jobs in different cities. By default, if the degree of demand is high, the general salary is also high.

Job city demand

Python requirements

Java requirements profile

Data analysis position

And Beijing is also exclusive of the second tier, it seems that the recent fire of data analysis positions, or in big cities, big factories have more development prospects oh.

Product Manager position

Shenzhen, Shanghai, Hangzhou and Nanjing will also have a good development for product managers, after all, these cities are where many young people start their dreams!

Overall job distribution

Finally, take a look at the overall job demand distribution

Whether it was the reform and opening up in those days or the Internet boom now, the southeast coastal region has always been in the forefront. The influx of large enterprises and talents has greatly promoted the development of the region, thus raising all boats. Both salary and demand are far ahead of other regions.

For central cities such as Xi ‘an, Wuhan and Chengdu, it is not that they are not good enough, but the innate gap, which needs more resources to make up.

Post the name

With all that said, what are companies hiring for

Python Job Title

Java Job Title

Data analysis job title

Product manager job title

Well, today’s analysis is over, I plan to analyze the recruitment situation of different enterprises next time, please look forward to oh!