Adding Tiktok Links To My Social Media Link Extractor Package
December 11, 2022
laravelToday I have added tiktok links to my social media link extractor package which was rather easy. But tiktok links are quite simple.
To test it out, i added about 700 websites urls I know have tiktok links. I added the function, then pushed it live to github. Then I did a composer update and it updated as if like magic!
I added the code to the spider like this sending in the list of links found on the page.
echo $smle->getTiktok($linkArray);
Here is a list of the unusual ones found in the list of 700+ websites i checked, the top lot are just http and botton ones https, with the vast majority in this format https://www.tiktok.com/@username those without the www. redirect the www. version of tiktok.
http://tiktok.com/@frontlinerecruitment
http://tiktok.com/@mycarboncoach
http://tiktok.com/@nesmuseum
http://tiktok.com/@suffolknewcollege
http://tiktok.com/@thewheelspecialist
http://tiktok.com/@virginutty
http://vm.tiktok.com/gcHFxw/
http://www.tiktok.com/@peakwildlifepark
https://tiktok.com/@flightclubdarts
https://tiktok.com/@intersportelverys
https://tiktok.com/@skateeastanglia
https://tiktok.com/@uniofeastanglia
https://tiktok.com/@wovendurham
https://vm.tiktok.com/cCXD3U
https://vm.tiktok.com/ZMe6rQbhe/
https://vm.tiktok.com/ZMekeLrLn/
https://vm.tiktok.com/ZMeMC59yM/
https://vm.tiktok.com/ZML7dohMg/
https://vm.tiktok.com/ZMLfy3ckD
https://vm.tiktok.com/ZMLh8vpwB/
https://vm.tiktok.com/ZMN82frh1/
https://vm.tiktok.com/ZMNrLa72g/
https://vm.tiktok.com/ZMR7XdHPy/
https://vm.tiktok.com/ZMRSK4B2S/
https://vm.tiktok.com/ZSuD2T54
https://www.tiktok.com/@_bnuni
https://www.tiktok.com/@zatugames
https://www.tiktok.com/discover/murphymachinery
https://www.tiktok.com/discover/pizzaexpress?lang=en
https://www.tiktok.com/discover/swg3-glasgow?lang=en
https://www.tiktok.com/discover/the-belfry-hotel
https://www.tiktok.com/en/
https://www.tiktok.com/legal/page/eea/privacy-policy/en
https://www.tiktok.com/tag/bristolsu/
I also found one had a tracking link like this:
https://www.tiktok.com/@username?_ga=2.225605338.1933392382.1646055423-1170747732.1642770380&_gac=1.241822390.1645437651.EAIaIQobChMI8f2o8sSQ9gIVQoxoCR2W0gU3EAAYASAAEgK3g_D_BwE
Investigating these, the 'vm.' links redirect to the homepage so arn't much use. I wonder what these are about...
The http ones redirect to the https site, the '/discover' and '/tag' links are both useful search type queries within the site.
I dont use tiktok myself, but I can see it growing in use on websites. I may add links to Digg, Delicious, foursquare, wikipedia, reddit links next. Is there a social media website you use that you think would be useful in this package? tell me in the comments....
Hope you find this interesting, useful and have learnt something about tiktok here.
If you would like to contact me with this form on londinium.com, ilminster.net or via Twitter @andylondon