定制 bborrel/google-scholar-profile-parser 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bborrel/google-scholar-profile-parser

最新稳定版本:3.0.1

Composer 安装命令:

composer require bborrel/google-scholar-profile-parser

包简介

Parses a profile page from Google Scholar.

README 文档

README

Latest Stable Version Minimum PHP Version Total Downloads License

Tested on PHP 7.2 to 8.3 Build Status Coverage Status Mutation testing badge Maintainability

Google Scholar Profile Parser is a PHP library which parses the HTML of a scholar's profile page from Google Scholar website and transforms its data into a regular PHP data structure.

The parsed data from a scholar is:

  • his/her list of publications (title, link, authors, publisher details, citations)
  • his/her citations' statistics (number of citations, h-index, i10-index)

Table of content

Project Rationale

As explained by this Wikipedia page:

Google Scholar is a freely accessible web search engine that indexes the full text or metadata of scholarly literature across an array of publishing formats and disciplines.Google Scholar is a website which indexes scholars' publications and citations.

Unfortunately Google Scholar website doesn't provide an API and I needed a way to fetch a scholar's data.

So, while I was looking for a PHP library which parses a profile page from Google Scholar website, I only found Scholar parser from Daniel Schreij. But I was unhappy with this library's dependency upon PhantomJS which development is suspended (and will likely not resume, leaving users without support). So I decided to rewrite this library redesigning it to depend only on PHP, and no more Javascript.

Requirements

Major versions vs. PHP:

  • 3.x: PHP 8.1+
  • 2.x: PHP 7.1+
  • 1.x: PHP 5.6+

As stated in composer.json, it requires PHP extension DOM.

Installation

Use Composer to download and install this library as well as its dependencies.

composer require bborrel/google-scholar-profile-parser

Usage

See the examples in the library's documentation.

Versioning

This library use SemVer for versioning. For available versions, see the tags on this repository. For feature changes, see the CHANGELOG.md file for details.

Code Quality

The code of this library:

These tools are installed with the library as long as you do not specify the option --no-dev when running the install or update Composer commands.

To run the static analysis tools and the unit tests via PHPQA:

./vendor/bin/phpqa

To see the reports generated by PHPQA use a browser to open the file ./build/phpqa.html.

Author

Benoit Borrel

License

This library is licensed under the GPL-3.0-only License, see the LICENSE.md file for details.

统计信息

  • 总下载量: 2.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2019-03-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固