Added URL to mentions
This commit is contained in:
parent
d23ca9c198
commit
676b4d356d
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (mastobotmon
|
project (mastobotmon
|
||||||
VERSION 0.3.1
|
VERSION 0.3.2
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
|
@ -73,7 +73,7 @@ If you use a debug build, you get more verbose error messages.
|
||||||
|
|
||||||
## Mentions
|
## Mentions
|
||||||
|
|
||||||
Mentions are written to `data_dir/mentions_account.csv`. The format is: acct;created_at;content.
|
Mentions are written to `data_dir/mentions_account.csv`. The format is: acct;created_at;content;url.
|
||||||
|
|
||||||
## Statistics
|
## Statistics
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,8 @@ const bool write_mentions(const string &straccount, Json::Value &mentions)
|
||||||
{
|
{
|
||||||
output = mention["status"]["account"]["acct"].asString() + ';';
|
output = mention["status"]["account"]["acct"].asString() + ';';
|
||||||
output += mention["status"]["created_at"].asString() + ';';
|
output += mention["status"]["created_at"].asString() + ';';
|
||||||
output += mention["status"]["content"].asString() + '\n';
|
output += mention["status"]["content"].asString() + ';';
|
||||||
|
output += mention["status"]["url"].asString() + '\n';
|
||||||
output = std::regex_replace(output, restrip, "");
|
output = std::regex_replace(output, restrip, "");
|
||||||
outfile.write(output.c_str(), output.length());
|
outfile.write(output.c_str(), output.length());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user