scholar.py icon indicating copy to clipboard operation
scholar.py copied to clipboard

Add HTML table export format (--html)

Open enricobacis opened this issue 10 years ago • 1 comments

Export article data in HTML table syntax.

./scholar.py --html -c 1 -a "Peter Norvig"

<table>
    <tr>
        <th>Title</th>
        <th>A modern approach</th>
    </tr>
    <tr>
        <td>Year</td>
        <td>1995</td>
    </tr>
    <tr>
        <td>Citations</td>
        <td>23127</td>
    </tr>
    <tr>
        <td>Versions</td>
        <td>60</td>
    </tr>
    <tr>
        <td>Cluster ID</td>
        <td>16379301881339907933</td>
    </tr>
    <tr>
        <td>Citations list</td>
        <td>http://scholar.google.com/scholar?cites=16379301881339907933&as_sdt=2005&sciodt=0,5&hl=en</td>
    </tr>
    <tr>
        <td>Versions list</td>
        <td>http://scholar.google.com/scholar?cluster=16379301881339907933&hl=en&as_sdt=0,5</td>
    </tr>
</table>

This text can also contain HTML, so using the previous code here we get:

Title A modern approach
Year 1995
Citations 23127
Versions 60
Cluster ID 16379301881339907933
Citations list http://scholar.google.com/scholar?cites=16379301881339907933&as_sdt=2005&sciodt=0,5&hl=en
Versions list http://scholar.google.com/scholar?cluster=16379301881339907933&hl=en&as_sdt=0,5

enricobacis avatar Jul 19 '14 15:07 enricobacis

any news about this?

enricobacis avatar Nov 29 '15 21:11 enricobacis