Visualize coauthor network of Google Scholar
Project description
<p><strong>scholarNetwork</strong> is a Python language software for the crawling, analysis, and visualization of the bibliographic data from Google Scholar. It is created by <em>Cheng-Jun Wang</em> & <em>Lingfei Wu</em>. To use it, you must first install beautifulsoup4 and NetworkX.</p>
<h1><em>Install</em></h1>
<pre><code>pip install scholarNetwork
</code></pre>
<h1><em>Use</em></h1>
<pre><code>from scholarNetwork import scholarNetwork
import matplotlib.pyplot as plt
import networkx as nx
## Set the seed of crawler
seed = 'https://scholar.google.nl/citations?user=nNdt_G8AAAAJ&hl=en&oe=ASCII'
## Nodes number. Start with a small one.
Nmax = 21
## Get the graph g
g = scholarNetwork.getGraph(seed, Nmax)
## plot the network
pos=nx.spring_layout(g) #setup the layout
nx.draw(g, pos, node_shape = 'o',
edge_color = 'gray', width = 0.5,
with_labels = True, arrows = True)
plt.show()
</code></pre>
<h1><em>Install</em></h1>
<pre><code>pip install scholarNetwork
</code></pre>
<h1><em>Use</em></h1>
<pre><code>from scholarNetwork import scholarNetwork
import matplotlib.pyplot as plt
import networkx as nx
## Set the seed of crawler
seed = 'https://scholar.google.nl/citations?user=nNdt_G8AAAAJ&hl=en&oe=ASCII'
## Nodes number. Start with a small one.
Nmax = 21
## Get the graph g
g = scholarNetwork.getGraph(seed, Nmax)
## plot the network
pos=nx.spring_layout(g) #setup the layout
nx.draw(g, pos, node_shape = 'o',
edge_color = 'gray', width = 0.5,
with_labels = True, arrows = True)
plt.show()
</code></pre>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scholarNetwork-1.0.0.3.zip
(6.8 kB
view hashes)