Giter Site home page Giter Site logo

seobiro's Introduction

Seobiro

Latest Version on Packagist Software License Total Downloads

Natural language processing applied to search engine optimization

Dataforseo (Get urls for keyword in Google)

$dataforseo = new \aitor\seobiro\Dataforseo({EMAIL},{KEY});
$results = $dataforseo->get_organic_results("aitor rodriguez");

Google Cloud (NLP)

// No need to initiate, just place the key.json in the main directory.

Usage

$seobiro = new \aitor\seobiro\Seobiro();

Get url contents

$url = "https://aitor.me";
$content = $seobiro->getUrl($url);

Get plain_text from content object

$text = $seobiro->getText($content);

Get language from plain_text

$language = $seobiro->getLanguage($text);

Get Tokens from plain_text

$tokens = $seobiro->getTokens($text);

Get Normalized Tokens

$normalized = $seobiro->getNormalizedTokens($tokens);

Get Stemmed Tokens

  $tokens = $seobiro->getStemmedTokens($tokens);

Remove Stopwords from token list

$seobiro->removeStopWords($normalized,$language);

Get Frequency Distribution from tokens

$frequency = $seobiro->getFrequencyDistribution($normalized)
$frequency->getKeyValuesByWeight();

Get Meta Description from content

$description = $seobiro->getDescription($content);

Get Meta Title from content

$title = $seobiro->getTitle($content);

Get Headers (h1-h6) from content

$headers = $seobiro->getHeaders($content);

Get Google Cloud NLP Entities

$GoogleEntities = $seobiro->getGoogleEntities($text);

Get Google Cloud NLP Sentiment

$GoogleSentiment = $seobiro->getGoogleSentiment($text);

Structure

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

src/        
example/

Install

Via Composer

$ composer require aitor/seobiro

Security

If you discover any security related issues, please email soy[at]aitor.me instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

seobiro's People

Contributors

aitordri avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.