Giter Club home page Giter Club logo

thenumberscom__webscraper's Introduction

theNumbersCom__webscraper

First of all I am not a data scientist, but a marketing phd. My main job does not include coding. I am a rookie in coding and Python. So, maybe there are more simple coding ways to collect the same data.

I have a post-doc project about movies and pre-release ewom. So, for movies, I scraped data from The-Numbers.com.

I had some trouble finding example codes for my project. That's why I decided to share my codes with other people who are searching for similar codes.

I used the Selenium library, not BeatifulSoup. I have tried both and Selenium worked but BS didn't. Maybe you can also accomplish this by BS.

In my project, firstly on the "report builder" page of The Numbers I got the movie list (I filtered by year, and some other criteria) to get the movie page links and the data on the list.

This list can be easily copied and pasted to Excel (no need for coding).

For the project, firstly movie page URLs are scraped from the report page (movie_urls.py). Then, by using these URLs, all the needed data can be scraped.

You can find two example files in this repository. The first one, movie_info.py, is the basic one. It can be used as a reference for any data scraping work from this website. The other one, actor_popularity.py, is more complex. It deals with a specific situation, iFrame. Data is hidden and to get it some tricky moves are required :)

Enjoy

thenumberscom__webscraper's People

Contributors

miskinadam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.