开源:老铁!整个社会语录?

折腾 467 字 5364 阅

写在前面

现在随着短视频的时代快速发展,通过某手某音,我们经常都可以看到一大波的精神小伙,他们说的话那真的是太....太优美了 ,于是我就找到了一言的随机API

没错!我想写一个随机的社会语录!我自己也来搞一个!

那语录真的是...哎呀妈呀,其实前端不难写,毕竟有老前辈随机一言给我们铺路,难的是收集这些社会语录的文字,费了好大一会功夫了。累!

没办法!谁让咱这么喜欢折腾呢!

另外也写了个舔狗日记,用的一样的模板。

项目链接

社会语录

[btngreen href="https://ouoo.fun/shehui" target="blank"]社会语录!安排!-从南到北[/btngreen]

舔狗日记

[btngreen href="https://ouoo.fun/dog/" target="blank"]舔狗日记-从南到北[/btngreen]

项目截图

mmexport1617330096972.png

mmexport1617330099358.png

API

[greenbar]返回JS APIhttps://ouoo.fun/yulu/shehui/api.php?format=js&charset=utf-8
返回JSON APIhttps://ouoo.fun/yulu/shehui/api.php?format=json&charset=utf-8
返回纯文字APIhttps://ouoo.fun/yulu/shehui/api1.php
提交方式:GET/POST[/greenbar]

调用

把这个放在<head></head>之间

<script type="text/javascript" src="https://ouoo.fun/yulu/shehui/api.php?format=js&charset=utf-8"></script>

然后把下面这个代码放在首页或者页脚你要显示的地方即可

<div id="hitokoto"><script>hitokoto()</script></div>

开源

秉承开源精神,决定把此项目进行开源,只开源前端啦,包括APP源码,仅供参考学习,后端就用我的吧(稳定得很),收集实属不易,如果你也爱折腾,你也可以自己收集。

HTML源码

[download href="https://image.ouoo.fun/echo/%E7%A4%BE%E4%BC%9A%E8%AF%AD%E5%BD%95.rar" target="blank"]点击进入下载[/download]

APP源码(iApp)

[download href="https://image.ouoo.fun/echo/%E7%A4%BE%E4%BC%9A%E8%AF%AD%E5%BD%95-%E4%BB%8E%E5%8D%97%E5%88%B0%E5%8C%97.iApp" target="blank"]点击进入下载[/download]

后端API

<?php
$path=dirname(__FILE__);
$file=file($path."/hitokoto.txt");
# 随机读取一行
$arr=mt_rand( 0, count( $file ) - 1 );
$content = trim($file[$arr]);
# 编码判断,用于输出相应的响应头部编码
if (isset($_GET['charset']) && !emptyempty($_GET['charset'])) {
    $charset = $_GET['charset'];
    if (strcasecmp($charset,"gbk") == 0 ) {
        $content= mb_convert_encoding($content,'gbk', 'utf-8');
    }
} else {
    $charset='utf-8';
}
header("Content-Type: text/html; charset=$charset");
# 格式化判断,输出js或纯文本
if ($_GET['format']==='js') {
    echo "function hitokoto(){document.write('".$content."');}";
} else {
    echo $content;
}

?>

自己可以自定义创建文件,自己做API

关于

“社会语录”该项目出自于个人兴趣爱好,并无任何商业化信息,请开发者们不要对本站进行攻击,本站托管在西部数码小水管,无任何CDN,还请大侠们手下留情!

有啥不明白的可以来问我

- THE END -
打赏 分享
评论 ( 130 )
OωO
  1. Iqlxyl

    canadian pharmacy review - order cephalexin 125mg online cheap canadian pharmacy meds reviews

    46分钟前 回复
  2. what is priligy tablets

    Buy Female Viagra Online

    11月11日 回复
  3. Wenwdc

    canadian pharmacy coupon code - ed pills online canadian pharmacy meds review

    11月11日 回复
  4. Oetlty

    ivermectin side effects - ivermectin online pharmacy ivermectin 12 mg tablets for humans

    11月10日 回复
  5. furosemide water pill

    Le Cialis Moin Chere

    11月9日 回复
  6. Tnykap

    real money casino - gambling website casino gambling

    11月9日 回复
  7. viagra in dogs

    Direct Progesterone

    11月9日 回复
  8. Zckqdf

    buy ivermectin 3 mg - stromectol buy nz buy stromectol pills

    11月7日 回复
  9. acquife
    acquife
    11月6日 回复
  10. money order viagra

    us prescription cialis

    11月5日 回复
  11. Cialis

    Ajanta Kamagra 100

    11月5日 回复
  12. Nilofe

    buy amoxicilin 500 mg india - amoxicillin for sinus infection amoxil 250mg online

    11月5日 回复
  13. Stromectol

    Amoxicillin For Face Rash

    11月4日 回复
  14. Iytccn

    accutane 60 mg - buy accutane from india accutane medicine in india

    11月3日 回复
  15. Cialis

    Cialis 33 Anos

    11月3日 回复
  16. Rxjrda

    prednisone for sale without prescription - buy prednisone online canada without prescription prednisone 20mg for sale

    11月2日 回复
  17. ZerryHip

    dhybridation ivermectin (stromectol) purchase
    oriented is ivermectin safe for humans
    buy ivermectin 12 mg otc
    - stromectol walgreens
    http://buyivermectin-online.com/# - ivermectin 12mg tablets online
    stroll ivermectin for coronavirus

    11月1日 回复
  18. aclepsa buy propecia

    Cialis Generico En Valencia

    11月1日 回复
  19. Kwymkt

    prednisone 40 mg tablet - 60 mg prednisone prednisone 7.5 mg daily

    10月31日 回复
  20. IzraelReego

    arizonagreek stromectol at night
    fantasieen ivermectin dog dose
    stromectol generic
    - stromectol marijuana
    http://stromectol-ivermectin.net/# - stromectol demodex
    honeysuckle ivermectin dosage

    10月30日 回复
  21. KezinEnado

    perplexe stromectol lice
    chasers why is stromectol prescribed
    ivermectin without doctors prescription
    - stromectol where to buy
    http://ivermectinwithoutdr.com/# - generic ivermectin without a doctor
    neprijemnych stromectol 3g

    10月29日 回复
  22. Siizfh

    mexican pharmacy online - canadian pharmacy no rx canadian pharmacy online

    10月28日 回复
  23. Belqjx

    stromectol how much it cost - generic stromectol ivermectin lice oral

    10月27日 回复
  24. Pezerflich

    labestibas oral ivermectin for lice
    hentwi stromectol and hiv
    where can i buy stromectol
    - ivermectin side effects
    http://ivermectin-stromectol.net/# - ivermectin in humans
    obmedzeny stromectol full prescribing information

    10月27日 回复
  25. Ecesrz

    ivermectin 12 mg without a doctor prescription - ivermectin without prescription stromectol prices

    10月26日 回复
  26. Rhykub

    viagra pills 150 mg - Buy online viagra viagra online india buy

    10月25日 回复
  27. Gigxyg

    i need help with my essay - writing essays for money paper help

    10月24日 回复
  28. ZathanBot

    medicine zithromax
    what is zithromax
    buy zithromax 250mg over the counter
    - azithromycin and pneumonia
    http://zithromax-otc.com/# - azithromycin 1000mg over counter
    azithromycin use

    10月23日 回复
  29. Vdbtlp

    best online casinos that payout - site best online casino for money

    10月22日 回复
  30. Ybnydn

    stromectol coupon - stromectol generic name ivermectin 6 mg over the counter

    10月21日 回复
  31. Ypcryz

    purchase stromectol online - cost of stromectol medicine ivermectin 20 mg

    10月20日 回复
  32. Cvtdlp

    best tadalafil tablets - Buy discount cialis online real cialis for sale

    10月19日 回复
  33. Svixwv

    cost of cialis 5mg in canada - ereccialtdfil how can i get cheap cialis

    10月17日 回复
  34. Uxdsbf

    where can i get generic viagra online - sildenafil medication sildenafil tablets 100mg buy

    10月16日 回复
  35. Xgfrlm

    generic viagra 100mg - viagra 50 mg cheap brand viagra

    10月15日 回复
  36. casino online

    hello my lovely stopforumspam member

    Welcome to Grosvenor Casinos, where you can play a wide range of casino games, from slots to poker, blackjack, and roulette! There’s something for everyone here – become a member of the casino to have the best of online casino gaming. Our Sportbook offers a range of sports betting odds and is available for pre event or in play bets 24/7 and 365 days of the year. Whether you’re here for football tournaments or the latest betting odds for horse racing, Tennis, Golf, Cricket and even Rugby Union, you are covered.

    10月14日 回复
  37. Unkjpj

    where to buy stromectol - oral stromectol cost ivermectin tablets order

    10月14日 回复
  38. canadian drugstore

    homeopathic allergy diagnosing stomach problems
    online pharmacies
    online pharmacies https://canadianexpresspharm.com/# online pharmacies

    10月14日 回复
  39. payday loans online

    hello my lovely stopforumspam member

    What are the Types of Loans in Ohio depending on the purpose
    Specific purpose payday loans in Ohio. Funds received in debt may be spent only for a specific purpose specified in the loan agreement.
    Non-purpose loan. The debtor may spend the money received at his discretion.
    Most popular specific purpose payday loans in Ohio are:

    House loan. The most common, of course, is a mortgage when the purchased property acts as collateral for a loan. Sometimes a youth loan is issued, with lighter conditions for debtors. Still quite common is a housing loan that does not imply purchased housing in the form of collateral.
    Car loan – payday loans in Ohio to a car or similar vehicle. The key is often the purchased goods, making the terms of the loan better. Also, loan conditions are improved: car insurance, life and health insurance of the borrower, and receiving a salary to the account of the creditor bank.
    Land loan. To purchase a plot for construction or agricultural activities.
    Consumer. For purchases in modern supermarkets, equipment stores, you can take a personal loan right at the point of sale. Often, specialists located there can contact the bank and get a regular or fast payday loans. Borrowed funds automatically pay for the goods, and the consultant explains when and how to re-pay the debt.
    Educational loan. It is issued to students, as well as to applicants who have passed the competition, to pay for tuition at universities, colleges, etc.
    Broker loan. For the circulation of securities, payday loans in Ohio are issued to an exchange broker, se-curities are purchased securities.
    Others. Objectives not related to those listed, but agreed and approved by the creditor.

    10月13日 回复
  40. Orudcx

    stromectol 3 mg tablet - stromectol for humans for sale stromectol human

    10月13日 回复
  41. Cidanh

    generic cialis for daily use - buy cialis uk next day delivery cialis mail order

    10月11日 回复
  42. Neurontine

    Cephalexin And Mao Inhibitors

    10月10日 回复
  43. Lwjhbe

    can you buy prednisone - prednisone brand name uk how to get prednisone

    10月9日 回复
  44. Bdtlqz

    buy 5mg tadalafil - cialis 10 m cialis how to

    10月8日 回复
  45. Veltfieni
    Veltfieni

    http://buyneurontine.com/ - gabapentin weight gain

    10月8日 回复
  46. Kuhskm

    best generic sildenafil - viagra sildenafil 200mg viagra best prices

    10月7日 回复
  47. online drugstore

    allergic conditions gastrointestinal distress meaning
    online drugstore
    canadian pharmacies https://canadianexpresspharm.com/# online pharmacies

    10月7日 回复
  48. Zwavit

    cost of ivermectin pill - stromectol brand name order stromectol

    10月6日 回复
  49. offisee
    offisee

    https://prednisonebuyon.com/ - prednisone canadian pharmnacy

    10月5日 回复
  50. canadian pharmacies

    bronchial asthma etiology lupus arthritis
    online pharmacies
    online pharmacies https://canadianexpresspharm.com/# canadian pharmacies

    10月5日 回复
  51. Mgholt

    xenical capsules price - orlistat 60 mg preisvergleich orlistat mice

    10月5日 回复
  52. Ibizzf

    buy vidalista 20 uk - cenforce 100 usa and uk kamagra 100 mg online

    10月3日 回复
  53. Fyzdne

    hydroxychloroquine arthritis - hydroxychloroquine plaquenil deltasone pill

    10月2日 回复
  54. Intelut
    Intelut
    10月2日 回复
  55. Hjxryw

    buy vardenafil - viagra canadian pharmacy vipps approved ed medication

    10月1日 回复
  56. Izhdig

    research papers writing - essay helper buy essay online uk

    9月26日 回复
  57. Tfqmfh

    isotretinoin 40mg - accutane medication accutane cream

    9月25日 回复
  58. lasix classification

    Last Long In Bed To Last Longer

    9月24日 回复
  59. jimdofreewen

    We spent a lot of time at her home. Maybe so her mother could keep an eye on us. Mrs. Spencer made sure to be around, offering drinks, snacks, chit chat. I noticed that she was fairly young herself. Granted at my age, anyone over 25 was old, but she was probably mid-30s, divorced. If she was a indiction of how Carley would develop, maybe I should wait. Mrs. Spencer had fuller breasts and a nice butt. She appeared to be in great shape for her "advanced" age. I knew she was keeping an eye on me as much as I was on her and her younger daughter. Her eldest, Sharon was away at college at the time. With Mrs. Spencer around we mostly limited ourselves to holding hands and sneaking in a few light kisses. One day Mrs. Spencer caught us by surprise walking in as I'd slid my hand up from Carley's stomach to rub her right breast through her shirt. She didn't really need a bra yet, so I could feel her nipple, hard, through her shirt. Just this much contact had me hard also.

    https://sites.google.com/view/MUuC5xmrE1xBPF5I https://sites.google.com/view/VAiJDr2hTihfGX9U

    9月24日 回复
  60. Ujwlin

    buying tadalafil online safely - buy tadalafil 20mg price buy tadalafil online

    9月24日 回复
  61. Tilange
    Tilange
    9月23日 回复
  62. entaisy
    entaisy
    9月23日 回复
  63. Vhizzy

    sildenafil without a doctor prescription - sildenafil coupon buy generic sildenafil

    9月22日 回复
  64. over the counter hydroxychloroquine

    hair loss concealer intestinal diseases in adults
    hydroxychloroquine price walmart
    hydroxychloroquine online https://hydroxychloroquineplaquen.com/# plaquenil

    9月22日 回复
  65. acouple
    acouple
    9月22日 回复
  66. plaquenil eye toxicity

    Viagra Et Decalage Horaire

    9月22日 回复
  67. sholype
    sholype

    https://buyplaquenilcv.com/ - does hydroxychloroquine

    9月21日 回复
  68. Adbnux

    ivermectin 12 - stromectol 2mg online ivermectin 2ml

    9月21日 回复
  69. Priligy

    Propecia Online Review

    9月21日 回复
  70. Khtdjc

    stromectol tablets 3 mg - ivermectin 1mg ivermectin cream 1

    9月20日 回复
  71. coeriot
    coeriot
    9月19日 回复
  72. Easedia
    Easedia
    9月19日 回复
  73. Abnzei

    doxycycline 100mg generic - how much is doxycycline cost prednisolone prednisone

    9月19日 回复
  74. peenotoog
    peenotoog
    9月18日 回复
  75. Stfnup

    generic cytotec - cytotec 200g where to buy cytotec pills in south africa

    9月17日 回复
  76. zithromax pills

    cialis causes headaches

    9月17日 回复
  77. kibundend
    kibundend
    9月16日 回复
  78. Nbrsre

    ventolin cost uk - ventolin over the counter ventolin cost canada

    9月16日 回复
  79. Srxtwc

    buy lasix online cheap - buy clomid furosemide over the counter

    9月15日 回复
  80. Ubmmxs

    canadian pharmacy 5 mg prednisone no rx - canada prednisone 50 mg prednisone 2

    9月14日 回复
  81. Bdocze

    buy ivermectin - stromectol humans ivermectin without prescription

    9月12日 回复
  82. Ltyfvg

    buying cialis in canada - Cialis cheap price generic cialis singapore

    9月10日 回复
  83. Cascalm
    Cascalm

    https://buystromectolon.com/ - ivermectin for horses

    9月9日 回复
  84. Dfsumn

    viagra online drugstore - Best price for generic viagra 50 mg viagra

    9月9日 回复
  85. Evorogava
    Evorogava
    9月8日 回复
  86. Cialis

    Macrobid Furadantin Need With Free Shipping Next Day Delivery

    9月8日 回复
  87. Jxbard

    order research paper online - help with my essay order an essay online

    9月7日 回复
  88. anowirway
    anowirway

    http://buytadalafshop.com/ - comprare cialis online

    9月7日 回复
  89. Viagra

    Prezzo Cialis Viagra

    9月7日 回复
  90. Tdhutq

    medrol 48 mg - solu medrol lyrica 5

    9月6日 回复
  91. Stromectol

    Cialis Rezeptfrei Vergleich

    9月6日 回复
  92. Trjldp

    amoxicillin price at walgreens - amoxicillin without a doctor’s prescription amoxicillin usa

    9月5日 回复
  93. saunTee
    saunTee
    9月5日 回复
  94. Ozxrba

    roche accutane without prescription - accutane 5 mg online accutane 40

    9月3日 回复
  95. Pemuxp

    order prednisone 10mg - prednisone side effects cost of prednisone

    9月2日 回复
  96. Embably
    Embably
    9月1日 回复
  97. Fgjnfn

    vardenafil 60 pills - vardenafil effectiveness vardenafil online in canada

    8月31日 回复
  98. Propecia

    generic kamagra buy

    8月30日 回复
  99. Htwuwc

    best australian online pharmacy - tadalafil price in mexico tadalafil 20 mg for sale online

    8月29日 回复
  100. Nannfq

    cheap viagra uk - buy viagra sale online viagra tablets in india

    8月28日 回复
  101. enrormeno
    enrormeno
    8月28日 回复
  102. Zjovel

    buy neurontin online - neurontin 100 mg caps levothyroxine canada

    8月27日 回复
  103. Rruyel

    doxycycline brand - doxycycline brand name india doxycycline 100mg capsule sale

    8月25日 回复
  104. Jprbfm

    where to buy misoprostol online - cytotec 200 mg buy cytotec usa

    8月24日 回复
  105. Gxutpe

    ventolin australia price - ventolin cost canada ventolin price canada

    8月22日 回复
  106. Crdjbd

    ivermectin 18mg - ivermecti.com stromectol for head lice

    8月21日 回复
  107. 刘瑞霞
    刘瑞霞

    4月14日 回复
  108. 寒光

    牛皮 哈哈哈哈哈

    4月3日 回复
  109. BLUE
    BLUE

    太棒了太棒了

    4月2日 回复
  110. 风雨行者

    厉害厉害,手动给你点个赞!

    4月2日 回复
感谢打赏