Skip to content

Commit

Permalink
Tabs to spaces and whitespace cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4hand committed Nov 4, 2015
1 parent af9b7dd commit 26efd7c
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 283 deletions.
8 changes: 5 additions & 3 deletions python/example.py
Expand Up @@ -13,7 +13,8 @@
# the i'th dictionary is the results for the i'th URL
metrics = l.urlMetrics(['www.moz.com', 'www.moz.com/blog'])
# Now let's say we only want specific columns in the results
authorities = l.urlMetrics(['www.moz.com'], lsapi.UMCols.domainAuthority | lsapi.UMCols.pageAuthority)
authorities = l.urlMetrics(
['www.moz.com'], lsapi.UMCols.domainAuthority | lsapi.UMCols.pageAuthority)
# Or if you just need results for one URL
mozMetrics = l.urlMetrics('www.moz.com')

Expand All @@ -25,5 +26,6 @@
# Now for some links results
links = l.links('www.moz.com')
# The links API has more columns to specify, as well as sort, scope, etc.
links = l.links('www.moz.com', scope='domain_to_domain', sort='domain_authority',
filters=['external', 'nofollow'], targetCols=lsapi.UMCols.url)
links = l.links(
'www.moz.com', scope='domain_to_domain', sort='domain_authority',
filters=['external', 'nofollow'], targetCols=lsapi.UMCols.url)

0 comments on commit 26efd7c

Please sign in to comment.