small improvement, removed 'operator' from url query statement because only...
Updated the query object with the new functionality, please review the changes and provide feedback.
The query.print() function now provides the below output from the example input. Do you think this is helpful? Any suggestions on this? For the moment, the urls are quoted strings, for the print output I can change this.
input:
query_example = ( twinl.Query() .keywords(keywords=["elfstedentocht", "schaatsen"]) .url(url_regex=["nos.nl", "nu.nl", "ad.nl", "https.schaatsen."]) ) query_example.print()
output:
{ "query": [ { "AND": { "keywords": "['elfstedentocht' OR 'schaatsen']" } }, { "AND": { "url": "['nos.nl' OR 'nu.nl' OR 'ad.nl' OR 'https.%2Aschaatsen.%2A']" } } ] }