oo0oo Posted July 19, 2015 Posted July 19, 2015 wakillonerror report:when i search adele / someone like you, there is always an error message.pls test...
argumentum Posted July 19, 2015 Posted July 19, 2015 >Running:(3.3.12.0):C:\Program Files (x86)\AutoIt3\autoit3.exe "G:\au3forum\141443-mp3searchengine-v2006\Mp3SearchEngine_v2.0.0.6.au3"runs just fine @oo0oo , what environment are you running under ? Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
wakillon Posted July 19, 2015 Author Posted July 19, 2015 wakillonerror report:when i search adele / someone like you, there is always an error message.pls test..."someone like you" give me 500 resultsand "adele" give me 498 resultsCould you try running script in SciTE for get the error line ?Is it the executable of the my download section or is it my script compiled by you ?Thanks for your feedback. AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
JohnOne Posted July 19, 2015 Posted July 19, 2015 Same here, as wakillon's results.No problems, maybe the site was broken at the time. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
wakillon Posted July 19, 2015 Author Posted July 19, 2015 If the error appear when you RightClick on the listviewand you use a previous AutoIt Version, may be problem is from this line (446) :"If $hLVRightClick = GUICtrlGetHandle ( GUIGetCursorInfo ( $hGui )[4] ) Then ; if over listview."where syntax used can not be supported by your AutoIt version... AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
Janoski Posted November 3, 2015 Posted November 3, 2015 Hi wakillon i would like to ask how did you do that the GUI in maximize mode and your label and button it will all range in the same location thank you sorry for my bad English
wakillon Posted November 3, 2015 Author Posted November 3, 2015 (edited) Hi wakillon i would like to ask how did you do that the GUI in maximize mode and your label and button it will all range in the same location thank you sorry for my bad English In the Function Gui() Look at this line : GUISetOnEvent ( $GUI_EVENT_MAXIMIZE, '_WM_SIZE' )and for some controls i use GUICtrlSetResizing Edited November 3, 2015 by wakillon AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
wakillon Posted December 25, 2015 Author Posted December 25, 2015 (edited) Updated. Edited December 25, 2015 by wakillon AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
AutID Posted March 23, 2016 Posted March 23, 2016 (edited) Hey again. It's been a while! As you remember I have taken some of the function you used to have. I want to update a project I had based on those function I took from you. I see that mp3skull and the other servers are not so reliable anymore so I came here and I see you have a lot of updates. It looks great btw. I visited audiodump.com manually to saw how the search engine works and it looks fine. However I have a question. How do you get the research url. In your code I see these two lines that give me some question: $sQuery = $aValue1[0] & '=' & $aValue2[0] & '&' & $aValue1[1] & '=' & $aValue2[1] & '&' & $aValue3[0] & '=' $sResearchUrl = 'http://www.audiodump.biz/music.html?' & $sQueryString & StringReplace ( $sDefault, ' ' , '+' ) Now the first one I understand. They way you get the query. Found that by myself as well. However the second line is difficult. How can you use a prefix "http://www.audiodump.biz/music.html?" + sQuery + artist? This "music.html?" part changes according to each artist. For example a search for adele would be http://www.audiodump.biz/lyrics.html?p=1&v=3af3&q=adele instead of http://www.audiodump.biz/music.html?p=1&v=3af3&q=adele How does it work for you? Edit: You are using Curl.au3 which I am not familiar at all. It could be the reason I am missing something here Edited March 23, 2016 by AutID https://iblockify.wordpress.com/
wakillon Posted March 26, 2016 Author Posted March 26, 2016 Not sure to understand your problem... Is it the _AudiodumpGetQueryString function that you do not understand the utility ? If yes, for example in this url http://www.audiodump.biz/genres.html?p=1&v=3777&q=toto "3777" is extracted from the source code of a first connection to http://www.audiodump.com/ because it's necessary for build a new request url. AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
AutID Posted March 27, 2016 Posted March 27, 2016 (edited) Let me explain you. So normally in the site, to perform a search for U2(musical band) the url would be http://www.audiodump.biz/music.html?p=1&v=9ac3&q=u2 according to the way you are doing it. However that page doesn't give me the search results. It redirects me here: There are not infos to extract from that redirected link such as mp3 titles, urls etc... Edited March 27, 2016 by AutID https://iblockify.wordpress.com/
wakillon Posted March 27, 2016 Author Posted March 27, 2016 It's because you do not use a referrer (as with curl) in your http request Request headers : GET /music.html?p=1&v=97c7&q=u2 HTTP/1.1 Host: www.audiodump.biz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A Accept: */* Accept-Encoding: deflate, gzipReferer: http://www.audiodump.com/ The "search" url can not be pasted like you do. If curl.au3 is not your cup of tea, you can also use the WinHttp.au3 of trancexx AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
AutID Posted March 27, 2016 Posted March 27, 2016 10 hours ago, wakillon said: It's because you do not use a referrer (as with curl) in your http request Request headers : GET /music.html?p=1&v=97c7&q=u2 HTTP/1.1 Host: www.audiodump.biz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A Accept: */* Accept-Encoding: deflate, gzipReferer: http://www.audiodump.com/ The "search" url can not be pasted like you do. If curl.au3 is not your cup of tea, you can also use the WinHttp.au3 of trancexx That was a really helpful post. I am using winhttp. I knew it has to do with the requests. Will get it worked and come back for feedback. Thank you https://iblockify.wordpress.com/
wakillon Posted March 27, 2016 Author Posted March 27, 2016 Ok, so add _WinHttpAddRequestHeaders ( $hRequest, 'Referer: http://www.audiodump.com/' ) to your request. AutID 1 AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
AutID Posted March 27, 2016 Posted March 27, 2016 8 hours ago, wakillon said: Ok, so add _WinHttpAddRequestHeaders ( $hRequest, 'Referer: http://www.audiodump.com/' ) to your request. Yep. A big thanks mate. https://iblockify.wordpress.com/
AutID Posted March 27, 2016 Posted March 27, 2016 (edited) Edit: got it Edited March 31, 2016 by AutID https://iblockify.wordpress.com/
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