Hi all,
I'm trying to query the results from pyspider in PostgreSQL and in mongoDB but I'm having following issue:
pyspider puts the result within quotes and escapes all quotes in it. E.g. this is what I see in mongoDB:
Why is pyspider doing that?
I want to run a query like this:
db.getCollection('test').find({"result.title" : {$regex : "pyspider"}});
but I can't.
When I create a similar document in the collection without quotes, like this one:
/* 2 */
{
"_id" : ObjectId("5a8f185a086088d1d2382821"),
"taskid" : "4530092164d4d034f151d22ed10396b9",
"result" : {
"title" : "Response - pyspider",
},
}
the above query works fine.