Code Monkey home page Code Monkey logo

Comments (5)

JerBouma avatar JerBouma commented on July 18, 2024

While for some companies it doesn't change often, it would lead to outdated metrics for companies that grow quickly. For example companies like Tesla and Amazon. It would also force me to update quarterly to collect the most recent market cap. I'd prefer to steer away from that.

Instead, find attached the market cap of all equities (as of the 3rd of February).

MarketCap.zip

from financedatabase.

mrx23dot avatar mrx23dot commented on July 18, 2024

True, but any past data would still be more useful than no data.

Even if not updated at all (but date provided).
80 000 API calls is a lot just to have some basic understanding of the field. Your call.

For competitor analysis is there any better way than looking for other companies in same industry?
Like a restaurant would be different from fast-food one but they are in the same Restaurants category.
eg. Domino's pizza vs McDonald's
Maybe a company: [list_of_products] database.

Cheers

from financedatabase.

JerBouma avatar JerBouma commented on July 18, 2024

There is a legal issue here as well. Data is collected from Yahoo Finance and if I would store all datapoints obtained from the API, they would have (even more) legal ground to shut down this repository. I'd like to prevent that by minimising the amount of data points and not be time-reliant while still being informative. Besides that, I wonder why you want to collect data of all equities as going over 80.000 tickers is quite difficult.

For a competitor analysis, your best bet is to go over their summary. With the function search_products you can search for specific keywords. This can also be a list of the most prominent fast-food by for example scraping the lists found here which results in this:

import wikipedia as wp

fast_food_chains = wp.page("List_of_fast_food_restaurant_chains")
list_of_fast_food_companies = fast_food_chains.links

copy = list_of_fast_food_companies.copy()

for item in copy:
    if 'List' in item:
        list_of_fast_food_companies.remove(item)

print(list_of_fast_food_companies)

In some areas this can be difficult, the difference between restaurants is a good example. An easier example would be comparing semiconductor companies or airlines because these companies usually stick to one specific niche.

I currently have no data that gives information on the products created by each company. This is something highly detailed you would have to scrape elsewhere. Unfortunately, this is also where you come into the area of paid services. Bloomberg Terminals probably offer this which costs thousands a year.

from financedatabase.

mrx23dot avatar mrx23dot commented on July 18, 2024

That's clever, I would have used NLP to break down the summary description into subjects, interesting that no one tried to tackle this problem in an open source project. I will look into and let you know if I have some usable results.

from financedatabase.

JerBouma avatar JerBouma commented on July 18, 2024

That's clever, I would have used NLP to break down the summary description into subjects, interesting that no one tried to tackle this problem in an open source project. I will look into and let you know if I have some usable results.

Yes please let me know! Note that some summaries do not contain a lot of information. For example McDonalds' one:

McDonald's Corporation operates and franchises McDonald's restaurants in the United States and internationally. Its restaurants offer various food products and beverages, as well as breakfast menu. As of December 31, 2019, the company operated 38,695 restaurants. McDonald's Corporation was founded in 1940 and is based in Chicago, Illinois.

Thus you perhaps need to collect data from different sources.

from financedatabase.

Related Issues (20)

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.