dave_the_rave Posted July 20, 2018 Posted July 20, 2018 I need to create a quick custom search query for this website for Alfred app: https://www.nulled.to/ I have successfully made a search working for crackingportal.com website which is similar to the nulled.to Here is screenshot for that: https://monosnap.com/image/g9FDl0OJtSOwzwbUrc5jlGieiZjmuP.png Please advice
vitor Posted July 21, 2018 Posted July 21, 2018 https://www.nulled.to/index.php?app=core&module=search&do=search&search_term={query} dave_the_rave 1
dave_the_rave Posted July 22, 2018 Author Posted July 22, 2018 (edited) On 7/21/2018 at 5:37 AM, vitor said: https://www.nulled.to/index.php?app=core&module=search&do=search&search_term={query} Thanks a lot man! Could you please tell me how you made this possible? I tried many times but couldn't figure it out. Also, could you do it for this forum website too: https://cracked.to/ also uses the same forums Edited July 22, 2018 by dave_the_rave
vitor Posted July 22, 2018 Posted July 22, 2018 3 hours ago, dave_the_rave said: https://cracked.to/ also uses the same forums Doesn’t look like it. It includes an sid (session ID) with each request, which is something I’ve found in phpBB forums. Nulled uses Invision Power Board, same as the Alfred forums. I’ve tried to programatically get the search query URLs for a phpBB board in the past and it was such a pain I abandoned the effort. This seems to use the same methods. 3 hours ago, dave_the_rave said: Could you please tell me how you made this possible? It depends on the website but is usually a variation of this: You’ll notice the final URL I gave you is slightly different. That’s because not all parameters of the query string are strictly necessary. FreeeG 1
selfmade69 Posted July 24, 2018 Posted July 24, 2018 @vitor Hey I think we can do this using python but I am not being able to pass it to the browser: Here is the script: import requests import sys query = sys.argv[1] payload = {'action': 'do_search', 'keywords' : query, 'postthread' :'2', 'matchusername' : '1', 'forums[]': 'all', 'findthreadst':'1', 'numreplies':'', 'postdate':'0', 'pddir':'1', 'threadprefix[]': 'any', 'sortby':'lastpost', 'sortordr':'desc', 'showresults':'threads', 'submit':'Search'} if len(query) > 0: r = requests.post('https://cracked.to/search.php', data=payload) print(r.cookies) print(r.url) Here is the workflow: https://d.pr/f/vEVw9K Any ideas?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now