@@ -127,8 +127,8 @@ def news_api(
127127 For more information about parameters and input, Please visit our documentation page: https://newsdata.io/documentation
128128 """
129129 params = {
130- 'apikey' :self .apikey ,'q' :q ,'qInTitle' :qInTitle ,'country' :country ,'category' :category ,'language' :language ,'domain' :domain ,'timeframe' :str (timeframe ), 'size' : size ,
131- 'domainurl' :domainurl ,'excludedomain' :excludedomain ,'timezone' :timezone ,'full_content' :full_content ,'image' :image ,'video' :video ,'prioritydomain' :prioritydomain ,
130+ 'apikey' :self .apikey ,'q' :q ,'qInTitle' :qInTitle ,'country' :country ,'category' :category ,'language' :language ,'domain' :domain ,'timeframe' :str (timeframe ) if timeframe else timeframe ,
131+ 'size' : size , ' domainurl' :domainurl ,'excludedomain' :excludedomain ,'timezone' :timezone ,'full_content' :full_content ,'image' :image ,'video' :video ,'prioritydomain' :prioritydomain ,
132132 'page' :page ,'qInMeta' :qInMeta
133133 }
134134
@@ -205,7 +205,7 @@ def crypto_api(
205205 params = {
206206 'apikey' :self .apikey ,'q' :q ,'qInTitle' :qInTitle ,'country' :country ,'category' :category ,'language' :language ,'domain' :domain ,'size' :size ,'domainurl' :domainurl ,
207207 'excludedomain' :excludedomain ,'timezone' :timezone ,'full_content' :full_content ,'image' :image ,'video' :video ,'prioritydomain' :prioritydomain ,'page' :page ,
208- 'timeframe' :str (timeframe ),'qInMeta' :qInMeta
208+ 'timeframe' :str (timeframe ) if timeframe else timeframe ,'qInMeta' :qInMeta
209209 }
210210
211211 URL_parameters = {}
0 commit comments