タグ

2016年11月23日のブックマーク (2件)

  • web-tsukuru.com - 

    This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.

    Dhio
    Dhio 2016/11/23
    “require_once '/PathToLibrary/readability/Readability.php'; //取得する記事URLを指定 $url = 'http://web-tsukuru.com/270'; //URLからHTMLを取得してUTF8にエンコーディング $html = file_get_contents($url); $html = mb_convert_encoding($html, "UTF-8", "ASCII,JIS,UTF-8,EUC-JP,SJIS"
  • ブログから本文を取得するPHP ← Neo Inspiration

    私用で前に作ったんですが、 今回別のアプリで流用するのでクラスにしたので ついでに公開します。 //2015/02/18 リンク修正 ダウンロードはこれ Class.GetTitleAndBody.zip CSSレイアウトのDIVかテーブルレイアウトのTDで分割して 一番リンク率が低い 設定値よりリンク率が低い 設定値よりタグ率が低い 画像率が一番高い 文字数が規定以上 一番大きいパラグラフ ここらへんにポイントを割り振ってはじき出してます なので、ITMEDIAのようにサイドバーがえらく充実してるとことか <div class=”brclear”>なんてひどいことしてるとことかは うまくいきませんね。 使い方 こんなかんじです。 $Html = new GetTitleAndBody(); $Html->GetHtml(“http://dev.neoinspire.net”); if(e

    Dhio
    Dhio 2016/11/23