Page 1 of 1

Public Tease API?

Posted: Sun Oct 09, 2016 10:35 am
by Zitrus
Hey Milovana Team,

i would like to build a random Tease-Picker that can be filtered. To implement this i could use a public API for Milovana Webteases. Does anyone know anything?

Warm regards,
Zitrus

Re: Public Tease API?

Posted: Mon Oct 10, 2016 5:36 am
by Ph0enixAsh
Unfortunately, seraph0x has mentioned that there is no api in place because it would make legal 18+ recordkeeping compliance a logistical nightmare.

There are a few people who have made scrapers, though the issue with that is that it has potential to really impact server load so you'll want to be considerate if you attempt the same.

With some smart programming, you could probably minimize the load and emulate it though by fetching the search page with PHP_GET parameters, including the results per page at its maximum of 50 (pp=50) and selecting one of the teases on that page. Or take it a step further and identify how many pages of results there are and pick one of those randomly too.
Hope this helps!

Re: Public Tease API?

Posted: Mon Oct 10, 2016 5:59 am
by arthurb
I use e.g.

Random tease rating 3.5+

http://www.milovana.com/webteases/#pp=1 ... eshold=3.5

or Random favourite tease

http://www.milovana.com/webteases/#favs ... ort=random

adding more filters if needed

Re: Public Tease API?

Posted: Mon Oct 10, 2016 12:03 pm
by Ph0enixAsh
Ah, there you go^^
I didn't realize there was a "sort=random" parameter. Learn something new every day!

Re: Public Tease API?

Posted: Mon Oct 10, 2016 11:09 pm
by Zitrus
That's awesome! Thanks a bunch.