I Need Script To Login A Website

MQL4 Skripte

Auftrag beendet

Ausführungszeit 12 Minuten
Bewertung des Kunden
Very Very good programer ! i had a very complicated task that some other developers could not do it ! but he did it in some minutes ! THANKS
Bewertung des Entwicklers
I'm glad to work with you. Thank you very much!!

Spezifikation

Hello

I want a script to login to this website  http://www.investing.com/members-admin/auth/login and after login i want the script to go to this page in the website http://www.investing.com/economic-calendar/ and this page i want to download it as htm. through the script


To the  folder MQL4/Files and then i will work with the file forther , so basically this is the job. BUT it is very important to know if you can do this job first because i have used other depolovers and they say it is hard and not possible to do it.


 

 

I have this samble of the script that i have created but i have problem with login and after that go to the page http://www.investing.com/economic-calendar/ and download it to the MQL4/Files, this is what i need help for !

 

 

//+------------------------------------------------------------------+ 
//| Login to Website                                                 | 
//+------------------------------------------------------------------+ 
#property script_show_inputs 

input string Email   ="";
input string Password="";

void OnStart()
  { 
   int    res;     // To receive the operation execution result 
   char   data[];  // Data array to send POST requests 
   char   result[];// page content.
   
   string str="loginFormUser_email="+Email+"&loginForm_password="+Password; // this is where i put the login and password <------


//--- Create the body of the POST request for authorization 
   ArrayResize(data,StringToCharArray(str,data,0,WHOLE_ARRAY,CP_UTF8)-1); 
//--- Resetting error code 
   ResetLastError(); 
//--- Authorization request 
   res=WebRequest("POST","http://www.investing.com/members-admin/auth/login",NULL,0,data,result,str); 
//--- If authorization failed 
   if(res!=200) 
     { 
      Print("Authorization error #"+(string)res+", LastError="+(string)GetLastError()); 
      return; 
     } 
      //--- Save the data to a file 
      int filehandle=FileOpen("Investing Page.htm",FILE_WRITE|FILE_BIN); 
      //--- Checking errors 
      if(filehandle!=INVALID_HANDLE) 
        { 
         //--- Save the contents of the result[] array to a file 
         FileWriteArray(filehandle,result,0,ArraySize(result)); 
         //--- Close the file 
         FileClose(filehandle); 
        }
   return;

  }

 You can see the source code this is the idea ! it is very simple to understand what i want i just want to login to the website then go to the page and write this page to a htm. file in the MQL4/Files filder.


 


important thing also is i want the source code file and in the source code i want the programmer to use //comment for each line explaining the source code .


So my requierments are 

1. script for login into website 

2. i want the source code of the script

3. i want the programer to //comment all the lines in the source code 

4. i want the script to login to the website then go to another page and then write the content into an htm. file in the MQL4/Files folder then i will process the content myself after that.

5. my goal is to get information out of the page where the economic calender have information about economic releases, when i get this page in the folder with it content i can find the informatin in it myself after that.


 

and this is some pictuers to explain more what i mean.

 

 

 

Thnaks 

Bewerbungen

1
Entwickler 1
Bewertung
(13)
Projekte
24
42%
Schlichtung
3
33% / 0%
Frist nicht eingehalten
4
17%
Frei
2
Entwickler 2
Bewertung
(258)
Projekte
396
28%
Schlichtung
69
19% / 49%
Frist nicht eingehalten
121
31%
Frei
3
Entwickler 3
Bewertung
(253)
Projekte
358
49%
Schlichtung
24
25% / 50%
Frist nicht eingehalten
80
22%
Frei
4
Entwickler 4
Bewertung
(91)
Projekte
144
38%
Schlichtung
67
15% / 48%
Frist nicht eingehalten
55
38%
Frei
5
Entwickler 5
Bewertung
(54)
Projekte
64
42%
Schlichtung
5
20% / 60%
Frist nicht eingehalten
4
6%
Frei
Veröffentlicht: 1 Beispiel
6
Entwickler 6
Bewertung
(39)
Projekte
44
16%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
7
16%
Frei
7
Entwickler 7
Bewertung
(28)
Projekte
36
17%
Schlichtung
5
20% / 40%
Frist nicht eingehalten
17
47%
Frei
Veröffentlicht: 5 Beispiele
8
Entwickler 8
Bewertung
(64)
Projekte
144
46%
Schlichtung
19
42% / 16%
Frist nicht eingehalten
32
22%
Arbeitet

Projektdetails

Budget
30- USD
Ausführungsfristen
bis 7 Tag(e)