@@ -34,7 +34,7 @@ def __init__(self):
3434 def __get_search_url (self , question , tags ):
3535 """
3636 This function returns the url that contains all the custom
37- data provided by the user such as tags and question, which
37+ data provided by the user such as tags and question, which
3838 can finally be used to get answers
3939 """
4040 return f"{ self .search_content_url } /2.2/search/advanced?order=desc&sort=relevance&tagged={ tags } &title={ question } &site=stackoverflow"
@@ -60,8 +60,8 @@ def make_request(self, que, tag: str):
6060
6161 def get_que (self , json_data ):
6262 """
63- This function returns the list of ids of the questions
64- that have been answered, from the response that we get
63+ This function returns the list of ids of the questions
64+ that have been answered, from the response that we get
6565 from the make_request function.
6666 """
6767 que_id = []
@@ -72,14 +72,14 @@ def get_que(self, json_data):
7272
7373 def get_ans (self , questions_list ):
7474 """
75- This function prints the answer to the queries
76- (question and tags) provided by the user. It does so
75+ This function prints the answer to the queries
76+ (question and tags) provided by the user. It does so
7777 in the following manner :
7878
79- 1) Takes in account only th first question id from the
79+ 1) Takes in account only th first question id from the
8080 list of question ids
8181
82- 2) Tries to get a response from the url obtained by appending
82+ 2) Tries to get a response from the url obtained by appending
8383 question id to the search_content_url variable
8484
8585 3) Use the data received from the above request and loop
0 commit comments