Twitter Sentiment Analysis on Flask App
1.0.0
ใน repo นี้ฉันสร้างการวิเคราะห์ความเชื่อมั่นของ Twitter บนแอพ Flask (ฐานเว็บ)
คุณสามารถตรวจสอบเว็บไซต์สาธิตคลิกที่นี่
.
├── images
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ └── 5.png
├── LICENSE
├── main.py
├── README.md
├── static
│ ├── logo.png
│ └── style.css
└── templates
├── index.html
└── sentiment.html
3 directories, 12 files





การวิเคราะห์ความเชื่อมั่นของ Twitter ในแอพ Python GUI คลิกที่นี่
การวิเคราะห์ความเชื่อมั่นของ Twitter ใน โน้ตบุ๊ก Python Jupyter คลิกที่นี่
ฉันไม่ได้ให้คีย์ Twitter API คุณได้รับคีย์ Twitter API ในบัญชีนักพัฒนา Twitter รับปุ่ม API
รับคีย์ API และใส่ในส่วนรหัสด้านล่าง
def sentiment ():
userid = request . form . get ( 'userid' )
hashtag = request . form . get ( 'hashtag' )
if userid == "" and hashtag == "" :
error = "Please Enter any one value"
return render_template ( 'index.html' , error = error )
if not userid == "" and not hashtag == "" :
error = "Both entry not allowed"
return render_template ( 'index.html' , error = error )
#=====================Insert Twitter API Here==========================
consumerKey = ""
consumerSecret = ""
accessToken = ""
accessTokenSecret = ""
#=====================Insert Twitter API End===========================
authenticate = tweepy . OAuthHandler ( consumerKey , consumerSecret )
authenticate . set_access_token ( accessToken , accessTokenSecret )
api = tweepy . API ( authenticate , wait_on_rate_limit = True )


หากคุณพบข้อผิดพลาด (เว็บไซต์ไม่สามารถจัดการกับการสืบค้นและ / หรือให้ผลลัพธ์ที่ไม่พึงประสงค์) โปรดเปิดปัญหาที่นี่โดยรวมถึงคำค้นหาและผลลัพธ์ที่คาดหวัง
หากคุณต้องการขอฟังก์ชั่นใหม่อย่าลังเลที่จะทำโดยการเปิดปัญหาที่นี่ โปรดระบุแบบสอบถามตัวอย่างและผลลัพธ์ที่สอดคล้องกัน
เป็นที่รู้จักในอินเทอร์เน็ตว่าเป็น โยค์ไนล์