Skip to content

Commit bd64637

Browse files
committed
wip: エラー修正、精度の向上
1 parent f2a34a8 commit bd64637

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

back/Twitter.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
# 除外ユーザ
2626
# @ri_Zu_n_ 競馬のうるさいユーザ
2727
# @KY1225kataware なんでやねん函館関係ないやろの人
28-
# @Miyabi207Vzs72 インスタでもうるさいr_18アカウント
28+
# @Miyabi207Vzs72 インスタでもうるさいr_18アカウント(雅とかいうアカウント)
29+
# @bonzu207 上の支援アカウント
2930
# @flan_staff r_18アカウント
3031

3132
# 除外ボット
@@ -126,7 +127,7 @@ def SaveToDatabase(tweets, tweets_data, data_label):
126127
if tweet.source != "twittbot.net" and tweet.source != "TravelRaku" and tweet.source != "rt_10" : #ここでBOTを除外する
127128
for i in range(len(tweets.includes['users'])):
128129
if tweet.author_id == tweets.includes['users'][i]['id']:
129-
if tweets.includes['users'][i]['username'] != "ri_Zu_n_" and tweets.includes['users'][i]['username'] != "KY1225kataware" and tweets.includes['users'][i]['username'] != "Miyabi207Vzs72" and tweets.includes['users'][i]['username'] != "flan_staff" :
130+
if tweets.includes['users'][i]['username'] != "ri_Zu_n_" and tweets.includes['users'][i]['username'] != "KY1225kataware" and tweets.includes['users'][i]['username'] != "Miyabi207Vzs72" and tweets.includes['users'][i]['username'] != "bonzu207" and tweets.includes['users'][i]['username'] != "flan_staff":
130131
ref.child(str(tweet.id)).set({ # キーはツイートID
131132
'data_label' : data_label,
132133
'date': -(tweet.created_at.timestamp()), #float型(確認済み)
@@ -309,9 +310,9 @@ def GetSeeTimeLine(tweet_max, client):
309310
# search = "函館 -is:retweet -is:reply -is:quote has:media -東京 -八王子 -札幌 -小樽 -苫小牧 OR 函館 -is:retweet -is:reply -is:quote has:links -東京 -八王子 -札幌 -小樽 -苫小牧 "
310311

311312
add_func = " -is:retweet -is:reply -is:quote has:media"
312-
place = " -東京 -羽田 -歌舞伎町 -八王子 -札幌 -すすきの -沖縄 -青森 -仙台 -山形 -鹿児島 -福島 -秋田 -盛岡 -神田 -土呂 -丘珠 -大宮 -新潟 -金沢 -苫小牧 -北見 -帯広 -室蘭 -夕張 -網走 -ニセコ -稚内 -留萌 -小樽 -釧路 -長万部 -旭川"
313-
r_18 = " -裏垢 -裏アカ -キャバ嬢 -パパ活 -風俗 -デブ専 -グラビアモデル"
314-
other = " -政権 -スープラ -runkeeper -戦争 -世界平和 -求人 -末広写真館 -函館に行ってきた -言霊アロマ"
313+
place = " -東京 -原宿 -羽田 -歌舞伎町 -八王子 -札幌 -サッポロ-すすきの -沖縄 -青森 -仙台 -山形 -沼津 -鹿児島 -福島 -秋田 -盛岡 -神田 -土呂 -丘珠 -大宮 -新潟 -金沢 -苫小牧 -北見 -帯広 -室蘭 -夕張 -網走 -ニセコ -稚内 -留萌 -小樽 -釧路 -長万部 -旭川"
314+
r_18 = " -裏垢 -裏アカ -キャバ嬢 -パパ活 -風俗 -デブ専 -グラビアモデル -病み -夜勤"
315+
other = " -政権 -スープラ -runkeeper -戦争 -世界平和 -求人 -末広写真館 -函館に行ってきた -言霊アロマ -地雷 -自撮り"
315316
# 検索対象(リツイート除外, 返信除外, 画像付きの投稿に絞る)
316317

317318
search = "函館" + add_func + place + r_18 + other

front/HaCollect/src/components/knowPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export default {
187187
},
188188
computed: {
189189
fire_data: function () {
190-
return this.$store.state.knowledge_fire_data
190+
return this.$store.state.know_fire_data
191191
},
192192
},
193193
};

front/HaCollect/src/store.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ const app = initializeApp(firebaseConfig);
2222
const database = getDatabase(app)
2323

2424
// 最初にDBからデータを取得してくる際のインスタの除外ワード
25-
const exclusion_list = /||||||||||鹿||||||||||||||||||||||||||||||||runkeeper||||||/
25+
const exclusion_list = /|宿||||||||||||鹿||||||||||||||||||||||||||||||||||runkeeper||||||||/
2626

2727
//カテゴリに表示する時の一致ワード
2828
//食べるカテゴリ
2929
const eat_category_word_list = /|||||/;
3030
//見るカテゴリ
31-
const see_category_word_list = /||/;
31+
const see_category_word_list = /|||/;
3232
//知るカテゴリ
33-
const know_category_word_list = /||||||||/;
33+
const know_category_word_list = /|||||||||/;
3434

3535
// const place = '東京 |羽田 |歌舞伎町 |八王子 |札幌 |すすきの |沖縄 |青森 |仙台 |山形 |鹿児島 |福島 |秋田 |盛岡 |神田 |土呂 |丘珠 |大宮 |新潟 |金沢 |苫小牧 |北見 |帯広 |室蘭 |夕張 |網走 |ニセコ |稚内 |留萌 |小樽 |釧路 |長万部 |旭川'
3636
// const r_18 = '|裏垢 |裏アカ |キャバ嬢 |パパ活 |風俗 |デブ専 |グラビアモデル |'

0 commit comments

Comments
 (0)