marvinody / mercari

a wrapper around mercari jp shopping site
43 stars 15 forks source link

Integration with PHP? #4

Closed marvinody closed 2 years ago

marvinody commented 4 years ago

Earthshaker8 asked about integration with PHP in a commit so just elevating to issue so it's not drowned out.

https://github.com/marvinody/mercari/commit/3d2f417ad4c0c09f840f5cb3c69623e44566f693

I've made a small repo that perhaps can be used in your PHP side. https://github.com/marvinody/mercari-server

Missing some functionality but just wanted a quick PoC. You should be able to curl this on PHP or get_file_contents or something. It's been a while but let me know if this is better for you.

Earthshaker8 commented 4 years ago

Oh, amazing m8! That's wht I was looking for! Thx 4 sharing it. Would be great if we can get the category list then the search for category. That's all. I really appreciate ur help

marvinody commented 4 years ago

Maybe you can flesh out what you mean a little more? I don't use the categories on mercari so a little unfamiliar. If you can give some more detail with maybe pictures of the site of what data you want, I can whip something up.

Earthshaker8 commented 4 years ago

Hi m8, I'll try to exlpain ans rry for my english. I need to give you another parameter in addition to . Then when you create the url https://www.mercari.com/jp/search/?keyword=yyyy I give you in addition to the keyword parameter “yyyy” the category_root=XXX parameter. Here an exemple for making u understand better my poor english explanation: https://www.mercari.com/jp/search/?keyword=nintendo&category_root=1. Then I need something like: https://mercari-api.herokuapp.com/api/search/&