Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/allotmentandy/socialmedialinkextractor
- Owner: allotmentandy
- License: mit
- Created: 2017-07-25T10:34:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T15:57:15.000Z (almost 2 years ago)
- Last Synced: 2024-12-23T03:09:26.229Z (14 days ago)
- Topics: crawler, extractor, facebook, laravel, linked-list, php, social, social-network, spider, twitter, url, youtube
- Language: PHP
- Homepage: http://londinium.com
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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