mnwato / tradingview-scraper

This is a tool to scrape everything on https://tradingview.com <Thank to contributers>
MIT License
65 stars 28 forks source link

Has the package stopped working ? #9

Closed SSV0726 closed 1 month ago

SSV0726 commented 1 year ago

Want to know if the package has stopped working ?

mnwato commented 1 year ago

I haven't tested it for a while. Do you have any problems? Or did you ask because there hasn't been a release for a long time?

asim1342 commented 1 month ago

Search by symbol doesnt work

mnwato commented 1 month ago

Search by symbol doesnt work

Semms that tradingview changed it's html structure. Working to fix it.

mnwato commented 1 month ago

This issue must have been solved. But note that so many changes has been happened. So check README. Now you can upgrade with pip install --upgrade tradingview-scraper.

asim1342 commented 1 month ago

@mnwato i want to get the recent ideas. i tried: https://www.tradingview.com/symbols{symbol_payload}ideas/page-{page}/?sort=recent" but this still gets the popular one.

mnwato commented 1 month ago

It's because for sort=recent frontend use API to get data: here is api: for main(first) page: https://www.tradingview.com/symbols/BTCUSD/ideas/?component-data-only=1&sort=recent for page-{page}: https://www.tradingview.com/symbols/BTCUSD/ideas/page-2/?sort=recent&component-data-only=1&sort=recent

I will add this feature soon.