-
Notifications
You must be signed in to change notification settings - Fork 2
Getting_user_info
Answerable needs your user ID to make you recommendations. It can optionally take into account your followed and ignored tags, to filter the recommendations.
You can find your user ID in the URL of your profile, that has the following form:
https://stackoverflow.com/users/{ID}/{name}
The tags information requires few extra steps. For now, I won't be implementing the use of the authentication_token for the Stack Exchange API, so the program must scrap the page to obtain the tags.
This page is private, so you must download its contents following this steps:
-
Go to the following page in your browser (tested in Firefox and Chrome):
view-source:https://stackoverflow.com/users/tag-notifications/{ID}
-
Select all (
Ctrl+A
). -
Copy and paste in a new file in your system.
That will be the tags file; you can pass its path as argument of the
-t
option.
You can make Answerable store this information (so you can delete the tags file afterwards) using the save command.
With the user ID, the program gets the answers from your profile using the StackExchange API. For now, only a maximum of the last 500 answers are retrieved.
You can also create an include.txt
file in the root of the project, where each line contains the ID of a question that will be taken into account for the recommendations, even if it has not been answered by the user.
Home | Contributing | License | Changelog | Code