English > Talk

curl - solution for https

<< < (3/8) > >>

Ivek23:
Obviously I'm doing something wrong or I overlooked because anything that you mentioned change in the code is not working, so please for the whole part of the revised code.

Full address of where it is located PVD v0.9.9.21 is as follows:

C:\Program Files\Personal Video Database\Scripts

Btw:
In which folder should be downpage_try.htm or downpage.htm file.

VVV_Easy_Programing:
Don't worry, all used and created files (downpage.htm) must be in the PVdB Scripts folder.
We must do two tries.
1) Use the new script. It automatically detects the scripts folder were must be the Rottentomatoes_[HTTPS].psf and the three curl files. Send to the forum the Log windows with the http://www.rottentomatoes.com/m/godfather try PVdB movie (don't worry if it don't scrapt the information).
2) Decompress the curl_try.zip in the script folder (ever with the three curl files), run curl_try.bat it in DOS windows and copy the DOS text result to the forum.

When we resolves the curl issue we can begin with the scrap information work.

Ivek23:

--- Quote ---1) Use the new script. It automatically detects the scripts folder were must be the Rottentomatoes_[HTTPS].psf and the three curl files. Send to the forum the Log windows with the http://www.rottentomatoes.com/m/godfather try PVdB movie (don't worry if it don't scrapt the information).
--- End quote ---


--- Code: ---?»?(5.11.2016 10:56:31) PVD Version: 0.9.9.21
(5.11.2016 10:56:31) OS: Windows 7 Home Basic Edition
(5.11.2016 10:56:31) Plugin loaded: amazon.dll 0.4.4.9
(5.11.2016 10:56:31) Plugin loaded: amazonde.dll 0.1.2.9
(5.11.2016 10:56:32) Plugin loaded: amazonfr.dll 0.1.1.8
(5.11.2016 10:56:32) Plugin loaded: amazonuk.dll 0.1.1.8
(5.11.2016 10:56:33) Plugin loaded: plainexp.dll 0.7.1.1
(5.11.2016 10:56:33) Plugin loaded: scriptint.dll 0.2.6.1
(5.11.2016 10:56:33) Plugin loaded: valueconvert.dll 0.1.0.2
(5.11.2016 10:56:33) Compiling script: Rottentomatoes_[HTTPS].psf
(5.11.2016 10:56:33) Script compiled successfully: Rottentomatoes_[HTTPS].psf
(5.11.2016 10:56:33) Executing script binary
(5.11.2016 10:56:33) Script loaded: Rottentomatoes_[HTTPS].psf 0.2.0.0
(5.11.2016 10:56:34) Loading database: C:\Users\Ivo\Documents\Personal Video Database\movies.pvd
(5.11.2016 10:56:34) UpdateToolbar: 1
(5.11.2016 10:56:36) UpdateToolbar: 2
(5.11.2016 10:56:36) UpdateToolbar: 3
(5.11.2016 10:56:41) Compiling script: Rottentomatoes_[HTTPS].psf
(5.11.2016 10:56:41) Script compiled successfully: Rottentomatoes_[HTTPS].psf
(5.11.2016 10:56:41) Executing script binary
(5.11.2016 10:56:41) Logging in...
(5.11.2016 10:56:41) Function GetDownloadURL|
(5.11.2016 10:56:41) Global Var-Mode|0|
(5.11.2016 10:56:41) Global Var-DownloadURL||
(5.11.2016 10:56:41)       Local Var-ScriptPath|C:\Program Files\Personal Video Database\Scripts\|
(5.11.2016 10:56:41)       Download with curl in file:|C:\Program Files\Personal Video Database\Scripts\downpage.htm| the information of:|https://www.rottentomatoes.com/m/godfather||
(5.11.2016 10:56:43)       Return for parsing movie with stored information of:|https://www.rottentomatoes.com/m/godfather||
(5.11.2016 10:56:43) Searching movie information for: Godfather
(5.11.2016 10:56:43) Function ParsePage|
(5.11.2016 10:56:43) Global Var-Mode|1|
(5.11.2016 10:56:43) Global Var-DownloadURL|https://www.rottentomatoes.com/m/godfather|
(5.11.2016 10:56:43) Local Var-URL||
(5.11.2016 10:56:43) Local Var-HTML.Begin||End
--- End code ---


--- Quote ---2) Decompress the curl_try.zip in the script folder (ever with the three curl files), run curl_try.bat it in DOS windows and copy the DOS text result to the forum.
--- End quote ---


--- Code: ---2) Decompress the curl_try.zip in the script folder (ever with the three curl files), run curl_try.bat it in DOS windows and copy the DOS text result to the forum.
--- End code ---

This is the result of tests according to your instructions without proxy settings. Previously it did not work properly due to included proxy settings. Proxy settings I used in testing with Proxomitron

Ivek23:
I did some testing with curl_try file, which I changed settings, leaving only this setting;
--- Code: ---curl.exe -o downpage.htm https://www.rottentomatoes.com/m/godfather
--- End code ---

I fixed the Rottentomatoes_ [HTTPS] script and now everything is working as it should.

Correct Rottentomatoes_ [HTTPS] script is attached.

VVV_Easy_Programing:
Good news.
I must ask you some questions.
¿Do you want make a complete script or only one for your custom fields?
If complete: ¿Do you want that I help you with the script? ¿May I you propose some improvements?
1) I attach: 0.2.0.3 (05/11/2016) -> VVV: Some improvements and explanations in code. without touch the code
2) For touching the code:
    I see that the structure is a little bit confusing ¿do you want that I arrange it?
    I see that the script use AddFieldValue that is deprecated. It better AddFieldValueXML ¿do you want that I arrange it?
    I think that the ParseSearchResults don't work ¿do you want that I programme it?

I don't maintain another script but I can help you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version