This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using HtmlAgilityPack; | |
using ScrapySharp.Extensions; | |
using ScrapySharp.Network; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace ScrapySharpTest | |
{ | |
class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// まずはアプリアクセストークンを取得する | |
var fb = new FacebookClient(); | |
dynamic result = fb.Get("oauth/access_token", new | |
{ | |
client_id = appId, //FacebookアプリのID | |
client_secret = appSecret, //FacebookアプリのSecret | |
grant_type = "client_credentials" | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @OnlyCurrentDoc Limits the script to only accessing the current spreadsheet. | |
*/ | |
/** | |
* Adds a custom menu with items to show the sidebar and dialog. | |
* | |
* @param {Object} e The event parameter for a simple onOpen trigger. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import facebook | |
import requests | |
def some_action(post): | |
""" Here you might want to do something with each post. E.g. grab the | |
post's message (post['message']) or the post's picture (post['picture']). | |
In this implementation we just print the post's created time. | |
""" | |
print post['created_time'] |