Hakija: A free NSE end of day data downloader

Are you satisfied with Hakija?


  • Total voters
    50

kaly422000

Well-Known Member
#81
In my case both the versions of HAKIJA fail to create log or any file in EOD folder... i only got a msg successfully fetched.. bt when i open the foldr to chk thn theres no file... im using it on WIN7sp1. any idea??? @nifty46 i also added you on yahoo regarding support my yahoo i.d is gtronixindia
did u unzip in a fresh folder(with out other file).
any way the last version is working.
i had installed also in my friend's laptop which has original win 7 home basic but it is too slow in that machine to start up(dnloading is ok) but in winxp in a desktop working fine.
so be sure that is it due to os or not
 
#82
In my case both the versions of HAKIJA fail to create log or any file in EOD folder... i only got a msg successfully fetched.. bt when i open the foldr to chk thn theres no file... im using it on WIN7sp1. any idea??? @nifty46 i also added you on yahoo regarding support my yahoo i.d is gtronixindia



same case for me


no files..


nybody got a solution..
 

josh1

Well-Known Member
#83
Hi Sahil,

I could run HakijaV1.0 in Linux, Ubuntu 12.04. The procedure is here.

1. Check whether Python is installed. (normally installed by default in Linux).
2. Download source code for Hakija_v1.0 and unzip in separate folder.
3. Install Python-Qt4 from synaptic.
4. Download mechanize from here - http://wwwsearch.sourceforge.net/mechanize/download.html
5. Install mechanize as superuser.
6. Open terminal.
7. Go to folder Hakija_v1.0.
8. Open Main.py in text editor and change line 2 from this - from gui import Ui_Hakija
to this - from Gui import Ui_Hakija
(linux is case sensitive)


Please give a small favour. hakija is creating EOD files in ddmmyyyy.txt format. I want them in yyyymmdd.txt format. Where should I change the code?
 

sr114

Well-Known Member
#84
Hi Sahil,

I could run HakijaV1.0 in Linux, Ubuntu 12.04. The procedure is here.

1. Check whether Python is installed. (normally installed by default in Linux).
2. Download source code for Hakija_v1.0 and unzip in separate folder.
3. Install Python-Qt4 from synaptic.
4. Download mechanize from here - http://wwwsearch.sourceforge.net/mechanize/download.html
5. Install mechanize as superuser.
6. Open terminal.
7. Go to folder Hakija_v1.0.
8. Open Main.py in text editor and change line 2 from this - from gui import Ui_Hakija
to this - from Gui import Ui_Hakija
(linux is case sensitive)


Please give a small favour. hakija is creating EOD files in ddmmyyyy.txt format. I want them in yyyymmdd.txt format. Where should I change the code?
Josh
look at main.py and this below section there
startdate = str(self.ui.startDate.date().toString("dd-MM-yyyy"))
enddate = str(self.ui.endDate.date().toString("dd-MM-yyyy"))
self.ponderous.goNow(startdate, enddate, self.ui.bhavcopyCB.isChecked(), self.ui.nseniftyCB.isChecked(),
self.ui.niftyjuniorCB.isChecked(), self.ui.nse100CB.isChecked(), self.ui.bankniftyCB.isChecked(),
self.ui.nsemidcapCB.isChecked(), self.ui.nseitCB.isChecked(), self.ui.nse500CB.isChecked(),
self.ui.midcap50CB.isChecked(), self.ui.vixCB.isChecked())
i think u have to change here to get the data in proper format as u require.

regards
sr
 
#85
Hi Sahil,

I could run HakijaV1.0 in Linux, Ubuntu 12.04. The procedure is here.

1. Check whether Python is installed. (normally installed by default in Linux).
2. Download source code for Hakija_v1.0 and unzip in separate folder.
3. Install Python-Qt4 from synaptic.
4. Download mechanize from here - http://wwwsearch.sourceforge.net/mechanize/download.html
5. Install mechanize as superuser.
6. Open terminal.
7. Go to folder Hakija_v1.0.
8. Open Main.py in text editor and change line 2 from this - from gui import Ui_Hakija
to this - from Gui import Ui_Hakija
(linux is case sensitive)


Please give a small favour. hakija is creating EOD files in ddmmyyyy.txt format. I want them in yyyymmdd.txt format. Where should I change the code?
I use ubuntu for development, so I know how to run this in ubuntu! ;)
I just don't feel that a normal user should need to go through these many package installations for running this.
Will upload a single binary file made using pyinstaller soon.
or if you can create and upload one, that would be great! :)

btw, u shouldn't need to change gui to Gui in code since the other file is named gui.py!

Anyways, assuming that you only want to change the name of the txt files
u need to change line #161
self.nfile = os.path.join(curdir,self.d.strftime("%d-%m-%Y") + ".txt")
to
self.nfile = os.path.join(curdir,self.d.strftime("%Y-%m-%d") + ".txt")

Hope it helps!
 

josh1

Well-Known Member
#86
I use ubuntu for development, so I know how to run this in ubuntu! ;)
I just don't feel that a normal user should need to go through these many package installations for running this.
Will upload a single binary file made using pyinstaller soon.
or if you can create and upload one, that would be great! :)

btw, u shouldn't need to change gui to Gui in code since the other file is named gui.py!

Anyways, assuming that you only want to change the name of the txt files
u need to change line #161
self.nfile = os.path.join(curdir,self.d.strftime("%d-%m-%Y") + ".txt")
to
self.nfile = os.path.join(curdir,self.d.strftime("%Y-%m-%d") + ".txt")

Hope it helps!
Thanks.
I changed line #161 and it worked well.
Some how name had change fro gui to Gui on my machine so Python was giving me file not found error.
I am happy with the source files since they run fast with interpreter.

I would not dare to build binaries and upload since I will not be able to troubleshoot in case of any trouble.
 

josh1

Well-Known Member
#89

Similar threads