Pyscape: Your Best Friend for Using the Mozscape API
Posted by GeoffKenyon
If you do link building and have to pull a lot of metrics from Open Site Explorer, I would like to introduce you to your new best friend, Pyscape. You might use a Google Doc to take advantage of the Mozscape API, but this is better. I promise.
Pyscape, created by fellow Distiller Ben Estes, enables you to pull link data such as an export of more than 10,000 backlinks or look up Moz metrics for a bulk URL list. And it’s super-fast.
What does Pyscape do?
When you use Pyscape, you must choose one of the following operating modes to run:
- Metrics: This will simply show all the Moz metrics associated with the given URL, subdomain, or domain.
- Bulk-metrics: This will show you the Moz metrics for a bulk URL list.
- Anchor: This will give you all the anchors associated with a URL, subdomain, or domain.
- Top: This will return the top pages on a site.
- Links: This gives you a list of links pointing to a URL, subdomain, or domain.
- Ose-style: This will return an Open Site Explorer formatted list of links for a URL, subdomain, or domain.
It is also worth noting that Pyscape does not cut off your reports at 10,000 URLs, and it can be much faster than using the Open Site Explorer Interface — especially for sites with large link profiles.
Selecting Your Granularity
In addition to telling Pyscape which report you want to run, you need to give it a little more guidance. This is especially important because Pyscape will pick an intelligent set of fields to grab from Mozscape based on the options you specify. Start by telling Pyscape how it should interpret the URL(s) that you input:
- -d (domain): interprets the URL(s) as domains only
- -s (subdomain): interprets the URL(s) as subdomains only
- -p (page): interprets the URL(s) as the specific pages only
Links Mode
If you are in the links operating mode, here are a few more commands you should know:
- -o (one): will return one URL per linking domain in links mode
- -m (many): will return up to 25 pages per linking domain in link mode (this is the default)
Anchor Mode
Finally, there are a couple more directives you should know if you are going to use the anchor mode:
- -f (phrase): will return anchor text phrases
- -t (term): will return term matches (default)
Setting Up Pyscape
So now that we’ve covered what Pyscape will do, let’s look at how we use it. The following steps will take you through setting up Pyscape.
- Go to the Pyscape homepage; download the zip file and then extract it.
- Enter your Mozcape API credentials (free or paid) in the keys.json file. Get your credentials here.
- Download and install Python, version 3.2 or above (download here).
- Go give Pyscape an upvote on inbound.org to say thank you to Ben, or follow him on twitter.
Running Your First Pyscape Report
Ok, now that we’ve got Pyscape installed, I’m going to take you through how to run reports using the command line (It sounds technical but it’s really pretty easy).
- Start up the “Command Prompt” application.
- Next you’ll need to change the directory that the application is operating in to the directory where you have extracted Pyscape. “Enter “CD” followed by the folder path leading to the extracted Pyscape directory and hit enter.
- Now enter your request. Below are some sample requests that show how requests need to be structured.
Entering these commands will give you the data you need to start your analysis in a nice .csv output in lightning-fast time. This Google Doc contains examples of the output data from Pyscape to help you get a feel for which reports will best work for you.
The rest is up to you! If you like the tool, make sure to say thanks to Ben and to vote it up on inbound.org!
Sign up for The Moz Top 10, a semimonthly mailer updating you on the top ten hottest pieces of SEO news, tips, and rad links uncovered by the Moz team. Think of it as your exclusive digest of stuff you don’t have time to hunt down but want to read!
Content Marketing Tactics from the Trenches: A How-To Extravaganza
Content is on the minds of marketers everywhere, but how do you tackle it? What are some ways to show ROI and what sort of skills do you need on your team to make your brand or agency into an efficient, quality content producer?
A Compilation of Over 300 Keywords & Phrases that Trigger the Local Carousel
Gregg Gifford, Adam Dorfman and Dan Leibson have each put together lists of keywords that trigger the new Local Carousel. I noticed that while there was some overlap between the lists there was also a number of unique words on each list. I assembled them into one list and with some additional research on my […]
Google Logo Kicks Off The 100th Tour de France
Today’s Google logo marks the commencement of the 100th edition of the Tour de France. Covering a total of 3,404 kilometers (2,115.15 miles), the multi-stage bicycle race runs from Saturday June 29 through Sunday July 21. The 22 teams competing in the 2013 Tour de France are comprised of nine…
Please visit Search Engine Land for the full article.
A Eulogy For AltaVista, The Google Of Its Time
Goodbye AltaVista. You deserved better than this. Better than the one-sentence send-off Yahoo gave you today, when announcing your July 8 closure date. But then again, you always were the bright child neglected by your parents. The Amazing AltaVista You appeared on the search engine scene in…
Please visit Search Engine Land for the full article.
Yahoo To Shutter AltaVista, Axis & Several More Products
Out with the old. Out with the new. Yahoo’s latest round of spring cleaning includes the shut down of one of the web’s oldest search services (AltaVista) and one of the newest (Yahoo Axis), along with 10 other Yahoo products and services. Goodbye AltaVista AltaVista launched way back in…
Please visit Search Engine Land for the full article.
Google Warning External Keyword Tool Shut Down Is Near, AdWords Keyword Planner To Replace It
Google is working toward the complete phase out of the Adwords Keyword Tool and phasing in the new AdWords Keyword Planner. Users accessing the free external Adwords Keyword Tool to perform keyword research, will see the messaging below that it will no…
Google Logo Celebrates 100th Tour de France
Tomorrow, June 29th, 2013, will kick off the 100th Tour de France. To celebrate the special milestone, Google has a tasteful animated GIF Google Doodle for the Tour de France.
The 2013 Tour de France will start tomorrow, June 29th and run through J…
SearchCap: The Day In Search, June 28, 2013
Below is what happened in search today, as reported on Search Engine Land and from other places across the Web. From Search Engine Land: Yahoo Rolls Out Search Alerts For Web Search, Images & Video According to the Yahoo Search Tumblr blog, Yahoo Search Alerts for Web Search, Images and Video…
Please visit Search Engine Land for the full article.
Yahoo Rolls Out Search Alerts For Web Search, Images & Video
According to the Yahoo Search Tumblr blog, Yahoo Search Alerts for Web Search, Images and Video launched today. In the same way users can receive alerts for News, Fantasy Sports, Horoscopes, Stocks, Travel Destinations and Weather, the new Yahoo Search…
New Review Extensions In Google AdWords: What You Need To Know
Just yesterday, Google announced the beta release of AdWords Review Extensions, which allow advertisers to include blurbs of third-party reviews in their search ads. The extension could prove especially useful to local businesses and to advertisers who don’t have access to seller rating…
Please visit Search Engine Land for the full article.
Search In Pics: Matt Cutts Doing The Google Dance, Woz With Glass & Google Blimps
In this week’s Search In Pictures, here are the latest images culled from the Web, showing what people eat at the search engine companies, how they play, who they meet, where they speak, what toys they have, and more. Matt Cutts Doing The Google Dance: Source: Google+ Steve Wozniak With…
Please visit Search Engine Land for the full article.
Video Recap of Weekly Search Buzz :: June 28, 2013
This week, Google’s Matt Cutts said thee is a multi-week update being pushed out through July 4th. MozCast is showing huge spikes in ranking changes over the past few days…
Google News Adds Sports Scores & Weather To Homepage, Gives Business & Tech Sections Editors Picks
Google News has rolled out three updates, giving users quick access to sports scores and weather forecast from the News homepage, while adding Editors’ Picks content to the Business and Technology sections. The newly added ‘Sports Scores’ content highlights recent sporting event…
Please visit Search Engine Land for the full article.
Global Site Infrastructure Plan Essential For Effective SEO & Usability
Targeting the world with a website is a huge opportunity for today’s marketers — but very few businesses start out with that goal. The vast majority target a particular nation first, prove the business model, grow their business’ success, and then consider rolling out globally….
Please visit Search Engine Land for the full article.
Friday Talk: Matt Cutts and Duane Forrester
Google’s Matt Cutts and Bing’s Duane Forrester got together on stage at SMX West 2013.
Post from Bas van den Beld on State of Search
Friday Talk: Matt Cutts and Duane Forrester
Snowden Petition Blocked From Google? Like All Petitions, It Won’t Be When It Gets Enough Signatures
Search for [edward snowden petition] to find the petition filed through the White House’s Petition site, and you’ll see something odd. The petition has no description, because the White House won’t let Google crawl the page. But it’s not a move against Snowden, as some might…
Please visit Search Engine Land for the full article.
Well-Timed Link Building: How to Capitalize on Popular Topics
Timing is crucial for popular topics with a predictable life cycle, and will make your link building efforts much more effective. Here’s how to tune your content to attract links during all the separate phases of the life cycle of your products.
Bing Updates Deep Links Management While Google Displays Up To Ten Sitelinks
Microsoft Bing announced changes to the way they allow webmasters to manage their “deep links” in the search results, while Google has quietly added up to ten sitelinks for a navigational query. Bing Deep Links Update Vincent Wehren, Senior Program Manager at Bing Webmaster Tools,…
Please visit Search Engine Land for the full article.
Google’s Kaspar Szymanski Leaving Google
Kaspar Szymanski, a loved member of the Google Search Quality team, is leaving Google and Dublin to move to Berlin, Germany.
Kaspar is not like most Google search quality representatives…