In python 3 using PubMedClient a type error is obtained.
>> from bioscraping import PubMedClient
>> pubmed = PubMedClient(':memory:')
>> my_pmid = pubmed.fetch('1851123')
TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
I have fixed this error like this:
at /bioscraping/pubmed.py in _download(pmid):
24: response = urllib.request.urlopen(request, data=data.encode("utf-8"))
Seems to work in python3 and 2
In python 3 using PubMedClient a type error is obtained.
I have fixed this error like this:
at /bioscraping/pubmed.py in _download(pmid):
Seems to work in python3 and 2