Closed kalika303 closed 6 years ago
Is there any other provider with POST requests that I can take as reference? Thanks.
It seems that there is no parameter for post request in search engine, except for authentification request. :-( And in provider.json, I don't see any other providers which do that...
Possible enhancement ?
Possible, but currently not implemented. Needs proper post data submission and generation.
The implementation is there, but it is not well documented.
Just add:
"post_data" : "{'cat': '0', 'page': '1', 'srcrel': 'QUERY'}",
to the definition json of the provider
@mancuniancol is it correct my json?
{ "TNTVillage": { "anime_extra": "", "anime_keywords": "{title} {episode}", "anime_query": "EXTRA", "base_url": "http://www.tntvillage.scambioetico.org/?releaselist", "color": "FFF14E13", "general_extra": "", "general_keywords": "{title}", "general_query": "EXTRA", "language": null, "login_failed": "", "login_object": "", "login_path": null, "movie_extra": "", "movie_keywords": "{title} {year}", "movie_query": "EXTRA", "name": "TNTVillage", "parser": { "infohash": "", "name": "item('a', order=2)", "peers": "item(tag='td', order=3)", "row": "find_once(tag='body').find_all('tr')", "seeds": "item(tag='td', order=2)", "size": "item(tag='td', order=5)", "torrent": "item(tag='a', attribute='href', order=2)" }, "post_data" : "{'cat': '0', 'page': '1', 'srcrel': 'QUERY'}", "private": false, "season_extra": "", "season_extra2": "", "season_keywords": "{title} Stagione {season:2}", "season_keywords2": "{title} Stagione{season}", "season_query": "EXTRA", "separator": "+", "show_query": "", "subpage": true, "tv_extra": "", "tv_extra2": "", "tv_keywords": "{title} s{season:2}e{episode:2}", "tv_keywords2": "" } }
Thanks
No, it is not. Even you base_url is incomplete. :(
I have the right one in my fork. I need to do different pull requests to be integrated here.
@mancuniancol please, can you share your json here?
thanks
For italian users this feature will transform Elementun into the best addon ever, please add TNT as provider!
Please, try with Burst v0.0.18. TNTVillage added and looks good for searching. Send kudo's to @mancuniancol
Yesterday i tried Burst v0.0.18, i don't understand if is already working or not but from my side is just showing random torrent with no correlation with search text.
for me, like LinearLambda, is the same: no correlation between search text and showed torrent
but I switched on TNTVillage provide and switched off any other provider
Ad you Can see searching for young Sheldon Ita on TNT Village you find not related results
Aspected results
@kalika303 i don't use http://www.tntvillage.scambioetico.org/src/releaselist.php , i use http://www.tntvillage.scambioetico.org/?releaselist but i see that http://www.tntvillage.scambioetico.org/?releaselist calls http://www.tntvillage.scambioetico.org/src/releaselist.php with post form data parameter, for example
http://www.tntvillage.scambioetico.org/src/releaselist.php
cat: 0
page: 1
srcrel: the 100
this returns the same table you mentioned, but with the same result. due the provider is passing the right parameters, i think the problem is on the scraper, but i'm not sure, because the elements returned from the query are totally not related with the query.
I will make a fix on the next week, not earlier.
Will be fixed in the next version. As well as iscorsanero.
Please, try v0.0.19
@elgatito tntvillage works, thanks. i have to test corsaronero
Dear all,
TNT works, for long search text you need to increase the delay time to don't be timed out.
I want to say thanks you very much for your work @elgatito and all the other users that contribute to improve elementum.
@LinearLambda @abioneperhobby great.
Feel free to submit proposal for adding more trackers.
Hello!
I'm trying to create a provider for TNTVillage (a pretty reliable torrent site in Italy). I definitely need some help. First issue for me is that it uses XMLHttp POST request to search for result.
Once we get the results page, it should be pretty easy, as it is just a table to parse. Here is the site: http://www.tntvillage.scambioetico.org/?releaselist
Can someone help bootstrap the provider? I'm trying to add it to provider.json. Thanks.