Talk:Responsible Business in the Blogosphere

From Brede Wiki
Jump to: navigation, search

[edit] Google cites

import re
from urllib import FancyURLopener, quote
import simplejson as json
import time
from bs4 import BeautifulSoup as BS
 
url_rbb = "http://neuro.compute.dtu.dk/w/api.php?action=query&format=json&list=categorymembers&cmtitle=Category:Responsible Business in the Blogosphere"
url_pages = "http://neuro.compute.dtu.dk/w/index.php?action=raw&title="
url_gs = "http://scholar.google.com/scholar?cites="
 
pattern_fields = re.compile(r'\s*\|\s*(\w+)\s*=\s*([^\|]*\w)', re.DOTALL | re.UNICODE)
pattern_paper = re.compile('{{(?:conference )?paper(\s*?\|.*?)}}', 
                                      re.DOTALL | re.IGNORECASE | re.UNICODE)
class MyOpener(FancyURLopener):
    version = 'fnielsenbot - RBB citation count'
 
opener = MyOpener()
 
response = json.load(opener.open(url_rbb))
pagetitles = [page['title'] for page in response['query']['categorymembers']]
while 'query-continue' in response:
    url_continue = url_rbb + '&cmcontinue=' + response['query-continue']['categorymembers']['cmcontinue'].encode('utf-8')
    response = json.load(opener.open(url_continue))
    print(url_continue)
    pagetitles.extend([page['title'] for page in response['query']['categorymembers']])
 
papers = []
for pagetitle in pagetitles:
    raw = unicode(opener.open(url_pages + quote(pagetitle.encode('utf-8'))).read(), 'utf-8')
    print pagetitle 
    paper = pattern_paper.findall(raw)
    if paper:
        papers.append(dict(pattern_fields.findall(paper[0])))
 
for n, paper in enumerate(papers):
    if 'gscites' in paper:
        url = url_gs + paper['gscites']
        raw = opener.open(url).read()
        text_with_cites = BS(raw).find(attrs={"id": "gs_ab_md"}).text
        if text_with_cites:
            text_number = re.findall("^(?:About )?(\d+\.?\d*)", text_with_cites)
            if text_number:
                number_of_citations = int(re.sub('\.', '', text_number[0]))
                papers[n]['number_of_citations'] = number_of_citations
                print("%5d %s" % (number_of_citations, paper['title']))
            else:
                print("ERROR: " + text_with_cites)
        time.sleep(5)
 
for p in sorted(papers, key=lambda p: p.get('number_of_citations', 0), reverse=True):
    print("%5d %4s %34s [[%s]]" % (p.get('number_of_citations',0), p.get('year','?'), '[[' + p['author1'] + ']]', p['title']))
 
for p in sorted(papers, key=lambda p: p.get('number_of_citations', 0), reverse=True):
    print("<tr><td>%5d<td>%4s<td>%34s<td>%s</tr>" % (p.get('number_of_citations',0), p.get('year','?'), '<!a href="http://neuro.compute.dtu.dk/wiki/' + quote(p['author1'].encode('utf-8')) + '">' + p['author1'] + '</a>', '<!a href="http://neuro.compute.dtu.dk/wiki/' + quote(p['title'].encode('utf-8')) + '">' + p['title'] + '</a>'))

[edit] Result

2013-04-25

  24 2011              Finn Årup Nielsen A new ANEW: evaluation of a word list for sentiment analysis in microblogs
  23 2011              Gerardo Patriotta Maintaining legitimacy: controversies, orders of worth and public justifications
  19 2011  Annemette Leonhardt Kjærgaard Mediating identity: a study of media influence on organizational identity construction in a celebrity firm
  15 2011                Lars Kai Hansen Good friends, bad news - affect and virality in Twitter
   8 2010                 Adam Arvidsson The ethical economy: new forms of value in the information society
   7 2011                 Adam Arvidsson Ethics and value in customer co-production
   5 2012                    Chitu Okoli The people's encyclopedia under the gaze of the sages: a systematic review of scholarly research on Wikipedia
   5 2012                 Adam Arvidsson Value in informational capitalism and on the Internet
   5 2013              Finn Årup Nielsen Wikipedia research and tools: review and comments
   3 2011             Friederike Schultz Strategic framing in the BP crisis: a semantic network analysis of associative frames
   2 2011             Toke Jansen Hansen Non-parametric co-clustering of large scale sparse bipartite networks on the GPU
   1 2012           Michael Kai Petersen Cognitive semantic networks: emotional verbs throw a tantrum but don't bite
   1 2010                  Michael Etter On relational capital in social media
   1 2011                  Mette Morsing State-owned enterprises: a corporatization of governments
   0 2013                Elanor Colleoni CSR communication for organizational legitimacy in social media
   0 2013               Anne Vestergaard Humanitarian appeal and the paradox of power
   0 2011          Bjarne Ørum Wahlgreen Large scale topic modeling made practical
   0 2012           Michael Kai Petersen On an emotional node: modeling sentiment in graphs of action verbs
   0    ?             Friederike Schultz The construction of corporate social responsibility in network society: a communication
   0 2013                 Adam Arvidsson The potential of consumer publics

2013-08-28:

  45 2011              Finn Årup Nielsen A new ANEW: evaluation of a word list for sentiment analysis in microblogs
  28 2011              Gerardo Patriotta Maintaining legitimacy: controversies, orders of worth and public justifications
  21 2011  Annemette Leonhardt Kjærgaard Mediating identity: a study of media influence on organizational identity construction in a celebrity firm
  20 2011                Lars Kai Hansen Good friends, bad news - affect and virality in Twitter
  13 2012                 Adam Arvidsson Value in informational capitalism and on the Internet
  11 2011                 Adam Arvidsson Ethics and value in customer co-production
  10 2012                    Chitu Okoli The people's encyclopedia under the gaze of the sages: a systematic review of scholarly research on Wikipedia
   8 2011             Friederike Schultz Strategic framing in the BP crisis: a semantic network analysis of associative frames
   6 2011             Toke Jansen Hansen Non-parametric co-clustering of large scale sparse bipartite networks on the GPU
   5 2013              Finn Årup Nielsen Wikipedia research and tools: review and comments
   2 2010                  Michael Etter On relational capital in social media
   1 2012           Michael Kai Petersen Cognitive semantic networks: emotional verbs throw a tantrum but don't bite
   1 2011                  Mette Morsing State-owned enterprises: a corporatization of governments
   0 2013                Elanor Colleoni CSR communication strategies for organizational legitimacy in social media
   0 2013               Anne Vestergaard Humanitarian appeal and the paradox of power
   0 2011          Bjarne Ørum Wahlgreen Large scale topic modeling made practical
   0 2012           Michael Kai Petersen On an emotional node: modeling sentiment in graphs of action verbs
   0 2013             Friederike Schultz The construction of corporate social responsibility in network society: a communication
   0 2010                 Adam Arvidsson The ethical economy: new forms of value in the information society
   0 2013                 Adam Arvidsson The potential of consumer publics

2013-10-31

  52 2011              Finn Årup Nielsen A new ANEW: evaluation of a word list for sentiment analysis in microblogs
  34 2011              Gerardo Patriotta Maintaining legitimacy: controversies, orders of worth and public justifications
  25 2011  Annemette Leonhardt Kjærgaard Mediating identity: a study of media influence on organizational identity construction in a celebrity firm
  24 2011                Lars Kai Hansen Good friends, bad news - affect and virality in Twitter
  16 2012                 Adam Arvidsson Value in informational capitalism and on the Internet
  12 2011                 Adam Arvidsson Ethics and value in customer co-production
  11 2012                    Chitu Okoli The people's encyclopedia under the gaze of the sages: a systematic review of scholarly research on Wikipedia
  10 2011             Friederike Schultz Strategic framing in the BP crisis: a semantic network analysis of associative frames
   9 2010                 Adam Arvidsson The ethical economy: new forms of value in the information society
   6 2011             Toke Jansen Hansen Non-parametric co-clustering of large scale sparse bipartite networks on the GPU
   6 2013              Finn Årup Nielsen Wikipedia research and tools: review and comments
   2 2010                  Michael Etter On relational capital in social media
   2 2011                  Mette Morsing State-owned enterprises: a corporatization of governments
   1 2012           Michael Kai Petersen Cognitive semantic networks: emotional verbs throw a tantrum but don't bite
   0 2013                Elanor Colleoni CSR communication strategies for organizational legitimacy in social media
   0 2013               Anne Vestergaard Humanitarian appeal and the paradox of power
   0 2011          Bjarne Ørum Wahlgreen Large scale topic modeling made practical
   0 2012           Michael Kai Petersen On an emotional node: modeling sentiment in graphs of action verbs
   0 2013             Friederike Schultz The construction of corporate social responsibility in network society: a communication
   0 2013                 Adam Arvidsson The potential of consumer publics

2014-02-07

  60 2011              Finn Årup Nielsen A new ANEW: evaluation of a word list for sentiment analysis in microblogs
  42 2011              Gerardo Patriotta Maintaining legitimacy: controversies, orders of worth and public justifications
  29 2011                Lars Kai Hansen Good friends, bad news - affect and virality in Twitter
  26 2011  Annemette Leonhardt Kjærgaard Mediating identity: a study of media influence on organizational identity construction in a celebrity firm
  21 2012                 Adam Arvidsson Value in informational capitalism and on the Internet
  14 2011                 Adam Arvidsson Ethics and value in customer co-production
  13 2011             Friederike Schultz Strategic framing in the BP crisis: a semantic network analysis of associative frames
  12 2012                    Chitu Okoli The people's encyclopedia under the gaze of the sages: a systematic review of scholarly research on Wikipedia
  10 2011             Toke Jansen Hansen Non-parametric co-clustering of large scale sparse bipartite networks on the GPU
  10 2010                 Adam Arvidsson The ethical economy: new forms of value in the information society
   8 2013        Lars Thøger Christensen CSR as aspirational talk
   6 2013              Finn Årup Nielsen Wikipedia research and tools: review and comments
   5 2010                  Michael Etter On relational capital in social media
   5 2013             Friederike Schultz The construction of corporate social responsibility in network societies: a communication view
   4 2013                Elanor Colleoni CSR communication strategies for organizational legitimacy in social media
   2 2011                  Mette Morsing State-owned enterprises: a corporatization of governments
   1 2012           Michael Kai Petersen Cognitive semantic networks: emotional verbs throw a tantrum but don't bite
   1 2011          Bjarne Ørum Wahlgreen Large scale topic modeling made practical
   0 2013               Anne Vestergaard Humanitarian appeal and the paradox of power
   0 2012           Michael Kai Petersen On an emotional node: modeling sentiment in graphs of action verbs
   0 2013                 Adam Arvidsson The potential of consumer publics

2014-08-28

  94 2011              Finn Årup Nielsen A new ANEW: evaluation of a word list for sentiment analysis in microblogs
  60 2011              Gerardo Patriotta Maintaining legitimacy: controversies, orders of worth and public justifications
  45 2011                Lars Kai Hansen Good friends, bad news - affect and virality in Twitter
  38 2011  Annemette Leonhardt Kjærgaard Mediating identity: a study of media influence on organizational identity construction in a celebrity firm
  33 2012                 Adam Arvidsson Value in informational capitalism and on the Internet
  26 2011             Friederike Schultz Strategic framing in the BP crisis: a semantic network analysis of associative frames
  20 2013        Lars Thøger Christensen CSR as aspirational talk
  20 2011                 Adam Arvidsson Ethics and value in customer co-production
  18 2012                    Chitu Okoli The people's encyclopedia under the gaze of the sages: a systematic review of scholarly research on Wikipedia
  10 2011             Toke Jansen Hansen Non-parametric co-clustering of large scale sparse bipartite networks on the GPU
  10 2010                 Adam Arvidsson The ethical economy: new forms of value in the information society
   9 2013             Friederike Schultz The construction of corporate social responsibility in network societies: a communication view
   9 2013              Finn Årup Nielsen Wikipedia research and tools: review and comments
   8 2013                Elanor Colleoni CSR communication strategies for organizational legitimacy in social media
   6 2010                  Michael Etter On relational capital in social media
   4 2013                 Adam Arvidsson The potential of consumer publics
   3 2011                  Mette Morsing State-owned enterprises: a corporatization of governments
   2 2013                Itziar Castelló Communicative dynamics and the polyphony of corporate social responsibility in the network society
   1 2012           Michael Kai Petersen Cognitive semantic networks: emotional verbs throw a tantrum but don't bite
   1 2011          Bjarne Ørum Wahlgreen Large scale topic modeling made practical
   1 2014                Mostafa Mesgari "The sum of all human knowledge": a systematic review of scholarly research on the content of Wikipedia
   1 2014                    Chitu Okoli Wikipedia in the eyes of its beholders: a systematic review of scholarly research on Wikipedia readers and readership
   1 2013               Anne Vestergaard Humanitarian appeal and the paradox of power
   0 2012           Michael Kai Petersen On an emotional node: modeling sentiment in graphs of action verbs

2015-08-24

 167 2011              Finn Årup Nielsen A new ANEW: evaluation of a word list for sentiment analysis in microblogs
  92 2011              Gerardo Patriotta Maintaining legitimacy: controversies, orders of worth and public justifications
  86 2011                Lars Kai Hansen Good friends, bad news - affect and virality in Twitter
  75 2012                 Adam Arvidsson Value in informational capitalism and on the Internet
  57 2013        Lars Thøger Christensen CSR as aspirational talk
  50 2011  Annemette Leonhardt Kjærgaard Mediating identity: a study of media influence on organizational identity construction in a celebrity firm
  48 2011             Friederike Schultz Strategic framing in the BP crisis: a semantic network analysis of associative frames
  31 2011                 Adam Arvidsson Ethics and value in customer co-production
  22 2013             Friederike Schultz The construction of corporate social responsibility in network societies: a communication view
  22 2012                    Chitu Okoli The people's encyclopedia under the gaze of the sages: a systematic review of scholarly research on Wikipedia
  19 2010                 Adam Arvidsson The ethical economy: new forms of value in the information society
  18 2013                Elanor Colleoni CSR communication strategies for organizational legitimacy in social media
  13 2011             Toke Jansen Hansen Non-parametric co-clustering of large scale sparse bipartite networks on the GPU
  11 2013                 Adam Arvidsson The potential of consumer publics
  10 2010                  Michael Etter On relational capital in social media
  10 2013              Finn Årup Nielsen Wikipedia research and tools: review and comments
   8 2013                Itziar Castelló Communicative dynamics and the polyphony of corporate social responsibility in the network society
   8 2015                Mostafa Mesgari "The sum of all human knowledge": a systematic review of scholarly research on the content of Wikipedia
   7 2014                    Chitu Okoli Wikipedia in the eyes of its beholders: a systematic review of scholarly research on Wikipedia readers and readership
   4 2013               Anne Vestergaard Humanitarian appeal and the paradox of power
   3 2011                  Mette Morsing State-owned enterprises: a corporatization of governments
   2 2011          Bjarne Ørum Wahlgreen Large scale topic modeling made practical
   1 2012           Michael Kai Petersen Cognitive semantic networks: emotional verbs throw a tantrum but don't bite
   0 2015                  Michael Etter Collective remembering of organizations: co-construction of organizational pasts in Wikipedia
   0 2015                  Michael Etter Facebook and the public framing of a corporate crisis
   0 2015                Itziar Castelló Strategies of legitimacy through social media: the networked strategy
   0 2012           Michael Kai Petersen On an emotional node: modeling sentiment in graphs of action verbs


[edit] 2016-07-19

(errors)

 255 2011              Finn Årup Nielsen A new ANEW: evaluation of a word list for sentiment analysis in microblogs
 132 2011              Gerardo Patriotta Maintaining legitimacy: controversies, orders of worth and public justifications
 126 2011                Lars Kai Hansen Good friends, bad news - affect and virality in Twitter
 124 2012                 Adam Arvidsson Value in informational capitalism and on the Internet
 108 2013        Lars Thøger Christensen CSR as aspirational talk
  71 2011             Friederike Schultz Strategic framing in the BP crisis: a semantic network analysis of associative frames
  59 2011  Annemette Leonhardt Kjærgaard Mediating identity: a study of media influence on organizational identity construction in a celebrity firm
  49 2011                 Adam Arvidsson Ethics and value in customer co-production
  49 2013             Friederike Schultz The construction of corporate social responsibility in network societies: a communication view
  43 2013                Elanor Colleoni CSR communication strategies for organizational legitimacy in social media
  34 2012                    Chitu Okoli The people's encyclopedia under the gaze of the sages: a systematic review of scholarly research on Wikipedia
  31 2015                Mostafa Mesgari "The sum of all human knowledge": a systematic review of scholarly research on the content of Wikipedia
  29 2013                Itziar Castelló Communicative dynamics and the polyphony of corporate social responsibility in the network society
  25 2010                 Adam Arvidsson The ethical economy: new forms of value in the information society
  21 2013                 Adam Arvidsson The potential of consumer publics
  17 2013              Finn Årup Nielsen Wikipedia research and tools: review and comments
  15 2014                    Chitu Okoli Wikipedia in the eyes of its beholders: a systematic review of scholarly research on Wikipedia readers and readership
  14 2011             Toke Jansen Hansen Non-parametric co-clustering of large scale sparse bipartite networks on the GPU
  11 2010                  Michael Etter On relational capital in social media
  10 2013               Anne Vestergaard Humanitarian appeal and the paradox of power
   5 2015                  Michael Etter Facebook and the public framing of a corporate crisis
   4 2011                  Mette Morsing State-owned enterprises: a corporatization of governments
   3 2015                Itziar Castelló Strategies of legitimacy through social media: the networked strategy
   2 2011          Bjarne Ørum Wahlgreen Large scale topic modeling made practical
   1 2012           Michael Kai Petersen Cognitive semantic networks: emotional verbs throw a tantrum but don't bite
   1 2015                  Michael Etter Collective remembering of organizations: co-construction of organizational pasts in Wikipedia
   0 2012           Michael Kai Petersen On an emotional node: modeling sentiment in graphs of action verbs
Personal tools