Skip to main content
# [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
#> { 'total_count': 2950 }

shares = facebook.getShares(url)
print shares
#> { 'share_count': 114 }

comments = facebook.getComments(url)
print comments
#> { 'comment_count': 720 }

likes = facebook.getLikes(url)
print likes
#> { 'like_count': 2116 }
```

#### Pinterest

Grabs the number of Pins for a URL.

```python
from socialanalytics import pinterest

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

#### Twitter

Grabs the number of Twitter shares for a URL.

```python
from socialanalytics import twitter

url = 'http://www.mindbodygreen.com/0-13633/an-11-minute-breathing-exercise-for-stronger-abs-a-clearer-mind.html'
share_count = pinterest.getPins(url)
print share_count
#> { 'share_count': 52 }
```

#### Google+

Grabs the number of Google+ +1's for a URL.

```python
from socialanalytics import google_plus

url = 'http://www.theatlantic.com/business/archive/2014/03/how-you-i-and-everyone-got-the-top-1-percent-all-wrong/359862/'
plus_count = google_plus.getPlusOnes(url)
print plus_count
#> { 'plus_count': 434 }
```

Metadata

Release files for socialanalytics 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socialanalytics 0.3.3
File Size Uploaded Provenance
socialanalytics-0.3.3.tar.gz 2.8 kB Without provenance Details

Release files / socialanalytics-0.3.3.tar.gz

Download URL socialanalytics-0.3.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
74c07fd2451f9036064bff06d82eb7727612bb5931ba5093b76d9fcc722c7820
BLAKE2b-256 checksum
How to use checksums
dbe433985e2066955603fa5dad21b1ba127c51b0b080dc18e498e48db2362568
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for socialanalytics 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page