Social Networking
Social Networking
https://developer.twitter.com/en/portal/dashboard
Step 2: Navigate to Projects & Apps->Overview .
Step 3: Click on the settings symbol and navigate to User authentication settings
and Edit.
Step 4: Enable Read and write and Direct message
Step 7 : Proceed with Step 2 and Click on the regenerate key symbol to
get API Key and Secret and Access Token and Secret.
Step 11: To create a post enter the post id. Refresh the page and check
the tweet is created check the tweet is created.
Step 12: To delete a post enter the post id. Refresh the page and check
the tweet is deleted.
Step 13: To exit the program enter the post id. Refresh the page and
program is exited.
Step 6: To get user id select your fb profile -> click on settings ->
select settings & privacy -> select apps and websites from the
drop down list which appears on the left -> choose your apps
‘view and edit’ ->under name and profile you can find your user id
OUTPUT:
Step 4: In the user or page drop down list select the API Test
Page.
Step 5: Copy and Paste the Generated Access Token as the
value for access token variable in the source code.
Step 6: Select the API Test Page option in the Your Pages and
Profiles menu.
PROCEDURE:
STEP 1: Import required libraries such as
sklearn.feature_extraction.text
for TfidfVectorizer, and pandas for DataFrame.
STEP 7: This will display the TF-IDF matrix in tabular form with terms
as columns and documents as rows, where each cell represents the TF-
IDF value of the corresponding term in the respective document.
OUTPUT:
car driven highway road truck
0 0.631667 0.449436 0.000000 0.631667 0.000000
1 0.000000 0.449436 0.631667 0.000000 0.631667
PROCEDURE:
Step 5: Click the profile in the right side corner 🡪 choose Settings
Step 6: Now choose developer settings🡪 generate personal
access token