edk - Help required for downloading
Moderator: Rathinagiri
edk - Help required for downloading
Hi Edward
I am back with some new problem in dowloading. Hope you can resolve it.
I want to download from this site
https://www.bseindia.com/corporates/List_Scrips.html
Segment - Equity T+1 On clicking Submit button the list is generated in CSV format and can be downloaded on clicking download symbol appearing on right hand side.
It probabbly uses this API
https://www.bseindia.com/BseIndiaAPI/ap ... Scripcode=
but using it directly on brower generates error 404
I have tried by retrieving cookies but it seems the website doen't generate cookies.
I have tried chatGPT, Gemini and DeepSeek but they have failed to provide solution in HMG, though a solution using bseindia library is possible.
Can you pls check this whenever you have time.
Thanks a lot.
rpc
I am back with some new problem in dowloading. Hope you can resolve it.
I want to download from this site
https://www.bseindia.com/corporates/List_Scrips.html
Segment - Equity T+1 On clicking Submit button the list is generated in CSV format and can be downloaded on clicking download symbol appearing on right hand side.
It probabbly uses this API
https://www.bseindia.com/BseIndiaAPI/ap ... Scripcode=
but using it directly on brower generates error 404
I have tried by retrieving cookies but it seems the website doen't generate cookies.
I have tried chatGPT, Gemini and DeepSeek but they have failed to provide solution in HMG, though a solution using bseindia library is possible.
Can you pls check this whenever you have time.
Thanks a lot.
rpc
- danielmaximiliano
- Posts: 2795
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: edk - Help required for downloading
Hola, el error 404 se debe que el sitio tiene otra estructura y claramente dice que use el menu y actualizar los marcadores.
c
c
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
Re: edk - Help required for downloading
Thanks Daniel Maximiliano,
Can you suggest a way of downloading the data. Since I am not getting cookies also I just don't know how to proceed.
Thanks for your interest.
Can you suggest a way of downloading the data. Since I am not getting cookies also I just don't know how to proceed.
Thanks for your interest.
- danielmaximiliano
- Posts: 2795
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: edk - Help required for downloading
Si me dices exactamente que quiere hacer te puedo ayudar. porque veo que en el primer link hay una sucesion de datos y el siguiente link API esta mal por eso el error 404.
ademas intente buscar en google y me devolvio un GITHUB a una API en Pyton pero creo no creo que es lo que necesitas
https://github.com/BennyThadikaran/BseIndiaApi
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
Re: edk - Help required for downloading
Hi Daniel
I need to download from this site
https://www.bseindia.com/corporates/List_Scrips.html
after opening the site, Segment selected should be 'Equity T+1' , other 3 comboboxes Groups, Status and Security name need not be filled, Click 'Submit' button, Data will be displayed below and it can be downloaded in CSV format(Equity.csv) by clicking download symbol appearing on right hand side.
I want to download this file Equity.csv through HMG.
After download on checking downloads folder and obtaining the link by right clicking I got following link
https://api.bseindia.com/BseIndiaAPI/ap ... ty&status=
On using this link also I can't download Equity.csv.
Can you help ?
Thanks in advance.
rpc
I need to download from this site
https://www.bseindia.com/corporates/List_Scrips.html
after opening the site, Segment selected should be 'Equity T+1' , other 3 comboboxes Groups, Status and Security name need not be filled, Click 'Submit' button, Data will be displayed below and it can be downloaded in CSV format(Equity.csv) by clicking download symbol appearing on right hand side.
I want to download this file Equity.csv through HMG.
After download on checking downloads folder and obtaining the link by right clicking I got following link
https://api.bseindia.com/BseIndiaAPI/ap ... ty&status=
On using this link also I can't download Equity.csv.
Can you help ?
Thanks in advance.
rpc
- danielmaximiliano
- Posts: 2795
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: edk - Help required for downloading
Hola, aqui tienes el ejemplo funcional
- Attachments
-
- BseIndia API.rar
- (1.59 MiB) Downloaded 8 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
Re: edk - Help required for downloading
Many thanks Daniel.
You have solved my problem which chatGPT, Gemini and DeepSeek failed to solve.
They asked me to use python but you have provided solution within HMG.
God Bless you.
With best Wishes.
rpc
You have solved my problem which chatGPT, Gemini and DeepSeek failed to solve.
They asked me to use python but you have provided solution within HMG.
God Bless you.
With best Wishes.
rpc
- danielmaximiliano
- Posts: 2795
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: edk - Help required for downloading
Hola : vi varios repositorios en GitHub refieriendose a la API de BSE como ser.
Pyton como es un lenguaje interpretado para algunas cosas es lento pero para otras es espectacular.
se podia usar Curl: pero implica descargar CURL , compilar el contrib de Harbour y usar la libreria puente en HMG.
la solución mas rápida es encapsular un objeto.
Code: Select all
https://github.com/BennyThadikaran/BseIndiaApipero esto implica instalar Pyton en su ultima versión.An Unofficial Python Api for BSE India stock exchange.
Pyton como es un lenguaje interpretado para algunas cosas es lento pero para otras es espectacular.
se podia usar Curl: pero implica descargar CURL , compilar el contrib de Harbour y usar la libreria puente en HMG.
la solución mas rápida es encapsular un objeto.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
Re: edk - Help required for downloading
Thanks for further guidance Daniel.
I could download using python library bseindia (curtsey chatGPT/DeepSeek/Gemini), however I wanted purely HMG code which you have provided.
I do not understand WinHTTP and the likes.
edk(Edward) had helped me a lot in the past in my programs to download from nseindoa.com website. I am always grateful to him.
I also tried curl.exe but no matter how much I tried, I could never get csv file. I got html file or error 403.
Can it be downloaded using curl.exe ?
Thanks a lot
rpc
I could download using python library bseindia (curtsey chatGPT/DeepSeek/Gemini), however I wanted purely HMG code which you have provided.
I do not understand WinHTTP and the likes.
edk(Edward) had helped me a lot in the past in my programs to download from nseindoa.com website. I am always grateful to him.
I also tried curl.exe but no matter how much I tried, I could never get csv file. I got html file or error 403.
Can it be downloaded using curl.exe ?
Thanks a lot
rpc
- danielmaximiliano
- Posts: 2795
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: edk - Help required for downloading
Hola RPC:
prompt para
ejemplo cmd y GUI hmg
prompt para
Code: Select all
https://gemini.google.comCode: Select all
Describe the use of this.:
oHttp := CreateObject( "WinHttp.WinHttpRequest.5.1" )- Attachments
-
- BseIndia API.rar
- (4.28 MiB) Downloaded 4 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace