Giter Site home page Giter Site logo

qiitadaily's Introduction

qiitaDaily

ローカルにqiita記事をカテゴライズして保存

使い方

事前に指定しておくこと

⚠️使用する前にCommon.phpqiitaDaily.shにて以下の値を設定してください。

Common.php

  • ARTICLE_DIR: 投稿の保存先 ex)../../Documents/archive/qiita/
  • TEMP_DIR: tempファイルの保存先 ex)../../Documents/archive/qiita/temp/
  • USERAGENT: userAgent ex)User-Agent: Bot/1.0 (◯◯Bot; rev.20181108; ◯◯@gmail.com)
  • ACCESSTOKEN: qiitaの開発者用アクセストークン
  • TEMPLATE: qiitaの記事から本文を表示させるためのテンプレート
  • CSSFILE:  書式を整えるためのCSS

qiitaDaily.sh

  • download: Common.phpで指定した「ダウンロードした投稿のパラメーターを保存するファイル」までのパス ex)../../Documents/archive/qiita/download.txt

実行例

sh qiitaDaily.sh

補足

qiitaDaily.shに指定されたsleepの値は少なくとも1以上にしておいてください。

181227

必要最低限の情報をまとめるためにテンプレートとCSSを追加しました。

  • 追加: template.html, style-8140ff048d203c2f3495c80fc4aea450.min.css
  • 変更: Common.php, getArticle.php, takeArticle.php

qiitadaily's People

Contributors

leeddhh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

qiitadaily's Issues

変数名が「index」なのに配列になっている。 なんのデータが入っている配列なのか見通しが悪くなるので直したほうが良いかも?

take-article.php

    //カテゴライズの配列をindexの昇順にするために揃える
    foreach ($categorizeTagsArray as $key => $row) {
        //indexの配列
        $index[$key]  = $row['index'];
        //タグの配列
        $keyword[$key]  = $row['tag_name'];
    }
    //tagをindexの昇順に変更
    array_multisort($index, SORT_ASC,$categorizeTagsArray);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.