Web-Scraping salary.com

Steven Ginzberg
Posted on May 29, 2016

Contributed by Steven Ginsberg.He is currently in the NYC Data Science Academy 12 week full time Data Science Bootcamp program taking place between April 11th to July 1st, 2016. This post is based on his third class project - Web Scraping, due on the 6th week of the program.

For my first web scraping project, I chose SALARY.COM.  My plan was to gather salary data, descriptive information across categories and industries, and compare salary information for various jobs.

From the home page, salary.com has a link to a categories page.  Under each category, there is are up to 15 pages of jobs with summary descriptions.  Each job has a detailed description page, and finally it links to a salary chart, which sometimes (but not always) has an advertising page pop up in between.

Page flowchart

Page flowchart

Links to all of the web pages are calls to javascript function either through the "href" attribute or an “onclick” event.  I started with Beautiful Soup but switched to Selenium.  You can see my code here.

I made a number of attempts to drill down the 4-5 levels, gather up the detailed information, and get back to the job titles summary page to move on to the next job detail.  Having Selenium click on the link and hitting “Back” gave a number of incongruous and inconsistent errors and results.  Finally, by late Saturday I gave up trying to drill down so many layers.  I downloaded the categories, and was able to reliably flip through the Job Summary pages, gathering the job titles and summary descriptions across many pages and also get back to the starting point consistently.  Finally!

All of my attempts to drill deeper and get back to the starting point failed.  At the end of the day I pulled 68 categories from the category page and was able to gather summary information for 2,190 jobs.  Since I only had text information, word clouds are the end result.

Job Titles

Job Titles

Job Descriptions

Job Descriptions

About Author

Steven Ginzberg

Steven Ginzberg

Steven has spent a number of years performing systems development, financial analysis and management in a variety of companies. Most recently, Steven has been working with start-ups helping them go from conception of ideas, identifying technologies, and finally...
View all posts by Steven Ginzberg >

Related Articles

Leave a Comment

Avatar
free flight tickets emirates July 29, 2017
I've seen traces within the customized's space at JFK Airport that make Free Cone Day at Ben & Jerry's look downright desolate.
Avatar
free flight tickets July 28, 2017
Florida has 152 state parks, making it one of the vital parks-dense states in the nation.
Avatar
home tuition jobs in ludhiana July 24, 2017
While this system is much like what Cuomo first proposed in January, a recent addition to the schooling plan requiring college students to stay and work in New York after graduation for a similar variety of years as they acquired the scholarship is alarming to some student assist experts, the magazine Inside Increased Ed famous.
Avatar
travel agency houston bellaire May 18, 2017
Journey Brokers Shield You - Most DIY vacation planners do not realize that medical insurance usually doesn't cowl your family whereas on trip out of area or particularly overseas.
Avatar
door lock latch plate March 9, 2017
This is really the place you will discover a difference between extra and less expensive lock sets.
Avatar
dream home source dhsw73227 March 6, 2017
Donald P. Prepare dinner, winner of HGTV's 2006 Dream House Sweepstakes, receives his verify.
Avatar
cctv providers in india February 15, 2017
YK
Avatar
aprons for women February 12, 2017
Pinafores have complete front formed over shoulder while aprons usually haven't any bib , or only a smaller one.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp