Skip to main content

Insight into how a specific URL performs on a variety of social networks.

Project description

# [socialanalytics](https://pypi.python.org/pypi/socialanalytics)

socialanalytics provides insight into how a specific URL performs on a variety of social networks.

## Installation

To install socialanalytics, simply:

`$ pip install socialanalytics`

## Documentation

#### Facebook

Grabs metrics from the Facebook Graph API for a URL

```python
from socialanalytics import facebook

url = 'http://espn.go.com/nfl/playoffs/2013/story/_/id/10395131/super-bowl-xlviii-seattle-seahawks-michael-bennett-doug-baldwin-talk-win'

fb_obj = facebook.getObject(url)
print fb_obj
#> {u'comment_count': 720, u'like_count': 2114, u'share_count': 114}

total = facebook.getTotalInteractions(url)
print total
#> 2948

shares = facebook.getShares(url)
print shares
#> 114

comments = facebook.getComments(url)
print comments
#> 720

likes = facebookgetLikes(url)
print likes
#> 2114
```

#### Pinterest

Grabs the number of Pins for a URL.

```python
from socialanalytics import pinterest

url = 'http://allrecipes.com/recipe/crispy-edamame/detail.aspx'
pins_count = pinterest.getPins(url)
print pins_count
#> 958634
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

socialanalytics-0.2.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file socialanalytics-0.2.1.tar.gz.

File metadata

File hashes

Hashes for socialanalytics-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d25b8fccceb1fffb6a45c412fc7e651e5dc2207aa0851d4f5edff784efacdfa0
MD5 a02425cc66d71e77f296cf1f7af782f4
BLAKE2b-256 59603467faf97df40860f083f148c58ebd5e85615a43956d4970146dee6fa6e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page