Python library to extract data from tech companies and topics.
Project description
# golden
Python library built upon [requests](https://github.com/kennethreitz/requests) to access and parse data from [Golden](https://golden.com)'s collection.
[Golden](https://golden.com) is a Wikipedia alternative that focuses on emerging tech, startups and ideas.
Extract company summaries, timeline of recent events, key people and more !
## Usage
```python
>>> from golden import golden
>>> search = golden.download('Apple')
>>> golden.title(search)
# 'Apple (company)'
>>> golden.summary(search)
# Apple Inc. is a public company designing and selling personal computers, smartphones, consumer electronics, and software. Its headquarters is located in Cupertino, California and it was founded in 1976.Apple Inc. is a California-based electronics company with a focus producing on consumer devices.
>>> golden.content(search, sentences=3)
#'Apple Inc. is a California-based electronics company with a focus producing on consumer devices. ProductsProducts and devices produced by Apple Inc. include iPad, iPhone, AirPods,Apple Watch, HomePod, and MacBook. Each product can give users access to one or more forms of media or technology including television, music, data storage, and computer applications.The products run on the Mac operating system, which has special features thare not available on non-Mac systems. Furthermore, the devices use continuity, which allows for all the devices owned by a user to beconnected.The company also produces software as a service and media options.'
>>> events = golden.timeline(search, events=1)
>>> for event in events:
>>> print(event["date"], " : ", event["subtitle"], "\n", event["content"])
# March 25, 2019 : Apple Card
# On March 25, 2019 during their keynote event Apple, in partnership with Goldman Sachs and Mastercard, announced Apple Card. A credit card by Apple with no fees—no annual, cash-advance, over-the-limit, international, or late fees— thats gives Apple users the ability to sign up for Apple Card using the Apple Wallet application.
>>> other_search = golden.download("jetpack aviation")
>>> people = golden.people(other_search)
>>> for p in people:
>>> print(p["name"], p["role"])
# Boris Jarry Employee
# Daniel Schwarzbaum Employee
# David Mayman Founder, CEO, Test Pilot, Project Manager
# Nelson Tyler Founder, Principle Designer
# Sergey Samchik Employee
>>> ceo = golden.people(other_search, "CEO")
>>> print(ceo)
# David Mayman : Founder, CEO, Test Pilot, Project Manager
```
## Installation
To install golden run following command :
```
$ pip install golden
```
## TO DO
* Add new queries :
* Commpany Url
* Products
* Country
* Improve suggestion while querying
* Hide html output when downloading a new page
* Improve content query output:
* Sentences nb query parameter doesn't always work
## LICENCE
Authored and maintained by [Terros Designs](https://terrosdesigns.com)
MIT licensed. See the [LICENSE](https://github.com/terrosdesigns/golden/blob/master/LICENSE) file for full details.
Python library built upon [requests](https://github.com/kennethreitz/requests) to access and parse data from [Golden](https://golden.com)'s collection.
[Golden](https://golden.com) is a Wikipedia alternative that focuses on emerging tech, startups and ideas.
Extract company summaries, timeline of recent events, key people and more !
## Usage
```python
>>> from golden import golden
>>> search = golden.download('Apple')
>>> golden.title(search)
# 'Apple (company)'
>>> golden.summary(search)
# Apple Inc. is a public company designing and selling personal computers, smartphones, consumer electronics, and software. Its headquarters is located in Cupertino, California and it was founded in 1976.Apple Inc. is a California-based electronics company with a focus producing on consumer devices.
>>> golden.content(search, sentences=3)
#'Apple Inc. is a California-based electronics company with a focus producing on consumer devices. ProductsProducts and devices produced by Apple Inc. include iPad, iPhone, AirPods,Apple Watch, HomePod, and MacBook. Each product can give users access to one or more forms of media or technology including television, music, data storage, and computer applications.The products run on the Mac operating system, which has special features thare not available on non-Mac systems. Furthermore, the devices use continuity, which allows for all the devices owned by a user to beconnected.The company also produces software as a service and media options.'
>>> events = golden.timeline(search, events=1)
>>> for event in events:
>>> print(event["date"], " : ", event["subtitle"], "\n", event["content"])
# March 25, 2019 : Apple Card
# On March 25, 2019 during their keynote event Apple, in partnership with Goldman Sachs and Mastercard, announced Apple Card. A credit card by Apple with no fees—no annual, cash-advance, over-the-limit, international, or late fees— thats gives Apple users the ability to sign up for Apple Card using the Apple Wallet application.
>>> other_search = golden.download("jetpack aviation")
>>> people = golden.people(other_search)
>>> for p in people:
>>> print(p["name"], p["role"])
# Boris Jarry Employee
# Daniel Schwarzbaum Employee
# David Mayman Founder, CEO, Test Pilot, Project Manager
# Nelson Tyler Founder, Principle Designer
# Sergey Samchik Employee
>>> ceo = golden.people(other_search, "CEO")
>>> print(ceo)
# David Mayman : Founder, CEO, Test Pilot, Project Manager
```
## Installation
To install golden run following command :
```
$ pip install golden
```
## TO DO
* Add new queries :
* Commpany Url
* Products
* Country
* Improve suggestion while querying
* Hide html output when downloading a new page
* Improve content query output:
* Sentences nb query parameter doesn't always work
## LICENCE
Authored and maintained by [Terros Designs](https://terrosdesigns.com)
MIT licensed. See the [LICENSE](https://github.com/terrosdesigns/golden/blob/master/LICENSE) file for full details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
golden-0.1.1.tar.gz
(4.2 kB
view details)
File details
Details for the file golden-0.1.1.tar.gz
.
File metadata
- Download URL: golden-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.17.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7156d83b80ca89b70de4045438215f6ed70031992fffd258330c831fe9f8b303 |
|
MD5 | 55d51346af0d153d08e60f249deca548 |
|
BLAKE2b-256 | 2936c721dee148ab6f09e780b91a93c57be318a41b95c23b768731bb210fd9dc |