kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.4k stars 627 forks source link

extract time error - wks #238

Closed papaya-ais closed 3 years ago

papaya-ais commented 3 years ago

It seems to be not able to parse date like 'n wks' image image

I saw code for finding reason, then I found that utils.py doesn't support about "1 wk" "2 wks" How can I add some regex on it?

neon-ninja commented 3 years ago

Hi @papaya-ais - this should do it - https://github.com/kevinzg/facebook-scraper/commit/0f3a190ac42be7037cd35ecc43c7f0c53b7b1a21

papaya-ais commented 3 years ago

I downloaded master branch and tested, and then it works! Thank you @neon-ninja! Can you publish this commit with PyPI?

neon-ninja commented 3 years ago

Sure, published as 0.2.33

papaya-ais commented 3 years ago

Checked update 0.2.33. Thank you!