This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gdata.analytics.service | |
from datetime import date, timedelta | |
from xml.dom.minidom import parseString | |
def main(): | |
client = gdata.analytics.service.AnalyticsDataService() | |
client.ClientLogin('<your email here>', '<your password here>') | |
today = date.today() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select a.comment_author_email, max(a.comment_date) as date, b.comment_author from wp_comments a, wp_comments b where a.comment_author_email = b.comment_author_email and a.comment_date = b.comment_date and a.comment_approved=1 and a.comment_author_email <> "" and a.user_id = 0 and a.comment_author_email not like '%YOUREMAILDOMAIN%' group by a.comment_author_email; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import networkx as nx | |
site = nx.DiGraph() | |
# load links from crawl into a list of dictionaries called edges with keys 'Source' and 'Destination' | |
for edge in edges: | |
site.add_edges_from([(edge['Source'], edge['Destination'])]) | |
# set norm_mr to be an array of normalized raw mozranks for the nodes in site |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.