Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allotmentandy/socialmedialinkextractor

php laravel package to extract social media links from an array of links for my spider, used as part of a spider for checking londinium.com website links
https://github.com/allotmentandy/socialmedialinkextractor

crawler extractor facebook laravel linked-list php social social-network spider twitter url youtube

Last synced: 14 days ago
JSON representation

php laravel package to extract social media links from an array of links for my spider, used as part of a spider for checking londinium.com website links

Awesome Lists containing this project

README

        

# SMLE - Social Media Link Extractor (smile) :)

My first package!

The idea is to create a nice easy way to extract the social media links from an array of links. For use in my webspider

## Installation

add

composer require allotmentandy/socialmedialinkextractor

## to use with laravel

```
countLinks($linkArray);
echo "


";
echo $smle->getTwitter($linkArray);
echo "
";
echo $smle->getFacebook($linkArray);
}
}
```
Here is the full list
```
$smle = new \allotmentandy\socialmedialinkextractor\SocialMediaLinkExtractorController();
echo "

Social Media

";
echo $smle->getTwitter($linkArray) . "
";
echo $smle->getFacebook($linkArray) . "
";
echo $smle->getYoutube($linkArray) . "
";
echo $smle->getInstagram($linkArray) . "
";
echo $smle->getLinkedin($linkArray) . "
";
echo $smle->getGoogle($linkArray) . "
";
echo $smle->getPinterest($linkArray) . "
";
echo $smle->getGithub($linkArray) . "
";
echo $smle->getFlickr($linkArray) . "
";
echo $smle->getTumblr($linkArray) . "
";
echo $smle->getTiktok($linkArray) . "
";
echo $smle->getRss($linkArray) . "
";
```

### original idea from here

https://github.com/fluquid/extract-social-media/blob/master/src/extract_social_media/__init__.py

### Followed this tutorial for the basics of the package

https://medium.com/laravelapps/laravel-package-development-step-by-step-guide-743d9e5e076e