Forums

(Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Whenever I try to make request it gives me an error saying requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.crunchyroll.com', port=443): Max retries exceeded with url: /ar/news (Caused by ProxyE rror('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) .

The url is: https://www.crunchyroll.com/ar/news

@Anime1Forest Hi, If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation. Please note we can only whitelist sites with an official public API.

where can i send the link ?

@Anime1Forest Just post it here.

https://www.nationalbank.kz/kz/page/statistika

I am experiencing the same error, but I think the website I'm trying to access is whitelisted. Can someone please check if https://cbr.ru/ is whitelisted? If it is, what can I do to solve this error?

www.cbr.ru is whitelisted cbr.ru is not.

@BaurT Can you please confirm your request? If it is in regards to adding an endpoint to the whitelist, please note we need public documentation stating the hostname for the endpoint.

hi please add this url address to your whitelist https://aut.ac.ir/page_arch.php?slc_pg_id=257&slc_lang=fa&sid=1

https://aut.ac.ir is site of amirkabir university

hii Pythonanywhere Team

i deployed a flask app in that i used shoonya Api which is already whitelisted but when i tried to login into the api i got proxy error forbidden 403 like this.

can you help me to sort this

Hi PythonAnywhere

i used finvasia api but i caught an error of Proxy Error

can you please whitelist their domain

you can get their api endpoints from https://github.com/Shoonya-Dev/ShoonyaApi-py/blob/master/api_helper.py and their github repo https://github.com/Shoonya-Dev/ShoonyaApi-py

@mahdiamk -- I've passed your request on to the team that deal with whitelist requests.

@NavaneethanT996 -- I've also passed the request in your second message on to that team too. For the first message, could you give the full error message that you get?

@giles --Thanks for your Response

I got error mentioned in the title ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))

If i run on localhost it working fine but i got this error after deployed in PythonAnywhere

Is there more to it than that? If you look at the first post in this thread, there's that HTTPSConnectionPool(host='... bit at the start.

Hi @giles the Errors i found are listed Below

(<class 'requests.exceptions.ProxyError'>, ProxyError(MaxRetryError("HTTPSConnectionPool(host='www.nseindia.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))")), <traceback object at 0x7fea7cbbf5c0>)

(<class 'requests.exceptions.ProxyError'>, ProxyError(MaxRetryError("HTTPSConnectionPool(host='api.shoonya.com', port=443): Max retries exceeded with url: /NorenWClientTP//QuickAuth (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))")), <traceback object at 0x7fea9ab9a9c0>)

It looks like Indian Stock Exchange is blocking known headless servers in the data centers and allowing only connections from computers connected to consumer ISPs.

Okay Thanks for the information

hi sir . i still have the ProxyError at / HTTPSConnectionPool(host='aut.ac.ir', port=443): Max retries exceeded with url: /page_arch.php?slc_pg_id=257&slc_lang=fa&sid=1 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) problem . i really appreciate your help.

@mahdiamk If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation. Please note we can only whitelist sites with an official public API.

@NavaneethanT996 Thank you for your message, can you please confirm the endpoint which you would like us to consider adding?

Hi everyone HTTPSConnectionPool(host='www.daraz.pk', port=443): Max retries exceeded with url: /catalog/?q=beater%20machine (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) I am getting this error can anyone from pythonanywhere add this link so I can use www.daraz.pk for request https://open.daraz.com/doc/api.htm#/api?cid=1&path=/product/create&methodType=POST

@escoutfyp Hi, Thank you for your message. Can you please confirm the endpoint which you would like us to consider adding to the whitelist? , please note it should be stated in the documentation.

Hello,

I am writing this to let you knkw that we are experiencing problem hosting Daraz.pk (version of Pakistan) on pythonevetwhere.

We are requesting you to look into the matter so that we could be able to access APIs for our tool.

Please find the attached links related to the query:

Daraz.pk (www.daraz.pk) Daraz.pk Documentation LINK (https://open.daraz.com/doc/api.htm#/api?cid=1&path=/product/create&methodType=POST)

We are looking forward to hearing back.

@escoutfyp api.daraz.pk has now been added to the whitelist.

Hello, I am trying to access wixapi (host='www.wixapis.com', port=443), but unfortunately i am i getting error HTTPSConnectionPool(host='www.wixapis.com', port=443): Max retries exceeded with url: /oauth/access (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))), can you please fix by adding wixapis in your whitelist

@salmanahmed9211 Hi, If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation. Please note we need public documentation stating the hostname for the endpoint.

Hi I'd like api.currencyapi.com to be whitelisted please. I'm getting the same error as those above.

Hello, I get an error when running the telegram bot code - raise proxyerror(e, request=request) requests.exceptions.proxyerror: httpsconnectionpool(host='24tv.ua', port=443): max retries exceeded with url: /golovni -novini_tag1792/ (caused by proxyerror('cannot connect to proxy.', oserror('tunnel connecti on failed: 403 forbidden'))) , could you please add 24tv.ua to the whitelist

Hy everyone, Thankyou for adding api.daraz.pk on whitelist but same as we want both to work so if you add www.daraz.pk in your whitelist than it will be helpful for us because we are using both the thing and on www.daraz.pk still we are getting proxy error so we will be very thankful if you add this also www.daraz.pk

@escoutfyp Thank you for your message. If you would like us to consider adding the above particular endpoint, please send us the link to the documentation which states the endpoint www.daraz.pk. Once we have received the requested documentation we will be able to consider your request further.

Kindly whitelist this site ASAP. Here is the official doc https://github.com/Medium/medium-api-docs

Hi @hmalik @giles! I am getting this kind of error message. requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.youtube.com', port=443): Max retries exceeded with url: /watch?v=gOf2SQVMUL0 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

If i run on localhost it works fine but i got this error after being deployed in PythonAnywhere. I am not sure but i think this is happening as the site www.youtube.com is not whitelisted for free user. It would be greatly appreciated if you could add it. Thanks

@theskyspace Hi, Thank you for your message. Can you please confirm the full domain for the website? If that is also the official documentation, can you please send us a direct link from the website to that documentation. Can you please also confirm the endpoint you would like us to consider adding?

@Utsab5 Hi, Thank you for your message. If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation. Please note we need public documentation stating the hostname for the endpoint.

I'm facing the same problem...

HTTPSConnectionPool(host='shv-om.medium.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Please whitelist this URL too: https://shv-om.medium.com

Send us a link to the API documentation for the site and we'll consider it for the whitelist. Please note we need public documentation stating the hostname for the endpoint.

I have a same problem, please whitelist this URL too: https://technest.idda.az/

@Gunay23 Hi, Thank you for your message. If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation. Please note we need public documentation stating the hostname for the endpoint.

Hi, I am facing the same problem ( Add please this to whitelist:

https://music.youtube.com

Package that uses it (I did not managed to find it on official Google resources):

https://github.com/sigma67/ytmusicapi

If there is no official documentation then it is not a candidate for the whitelist.

Hi,

I'm facing the same issue with IMDb APIs. I tried hitting https://www.imdb.com/title/tt0816692/reviews?ref_=tt_ov_rt but got the same 403 exception mentioned by the OP above. There is an official API documentation for IMDb API here. Can you please get it whitelisted ?

Their API does not appear to be a standard REST API with a published endpoint. You appear to need to connect through the AWS marketplace (https://developer.imdb.com/documentation/api-documentation/getting-access/?ref_=side_nav) so you will not be able to use the imdb api from PythonAnywhere.

Hello,

I am facing the same error when interfacing with the Synthesia REST API :- Here is a link to the documentation: https://docs.synthesia.io/docs/getting-started

I would like to connect to the /v2/videos endpoint. All the documentation is public. Would you be able to help me get this whitelisted?

@kslion22 Thank you for your message. I can now confirm api.synthesia.io has been added to the allow list.

I am facing the same error when interfacing with the Serper REST API :- Here is a link to the documentation: https://serper.dev/

@adfouberr Hi, Thank you for your message. If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation which states the endpoint you would like us to consider adding. Can you please also confirm the endpoint you would like us to add?

Hi , i have added this to my script to connect to proxy : exchange = ccxt.kucoinfutures({ 'rateLimit': 2000, 'enableRateLimit': True, 'options': { 'defaultType': 'future', 'requests': {'proxies': {'http': 'http://proxy.server:3128'}} }, }) But still have : ccxt.base.errors.NetworkError: kucoinfutures GET https://api-futures.kucoin.com/api/v1/contracts/active NB I have no issue to pay 5 dollars a month to have it working fine and help the service

Thanks for letting us know!

please add this url as well www.dailymail.co.uk

You'll find all the instructions for requesting allowlist additions here.

Hi I'd like https://api.tweets.beauty to be whitelisted please. I'm getting the same error as those above.

Hello, please add "https://statistics-api.wildberries.ru/api/v1/" to white list. I have same error

You'll find all the instructions for requesting allowlist additions here.

i would like tputo add "https://amzn.eu/d/"

You'll find all the instructions for requesting allowlist additions here.

hi, can you add "apptoogoodtogo.com" pls

You'll find all the instructions for requesting allowlist additions here.

Hello! Please add https://minfin.com.ua/currency/cards/ to your whitelist. I need to parse exchange rates from different banks and this is all there

You'll find all the instructions for requesting allowlist additions here.

please add this url as well www.chve.org.ua

@henish You'll find all the instructions for requesting allowlist additions here.

Can you whitelist ChatSonic API?

https://docs.writesonic.com/reference/finding-your-api-key

You'll find all the instructions for requesting allowlist additions here.

please add 'hocbadientu.vnedu.vn' to help me

You'll find all the instructions for requesting allowlist additions here.

pls add 'https://meme-api.com'

@Kur0Daisuke You'll find all the instructions for requesting allowlist additions here.

I am getting the same error and just filled out the survey, can you take a look?

All the form submissions will be considered.

Error changing group photo: HTTPSConnection Pool (host='fastly.picsum.photos', port=443) Max retries exceeded with url: /id/657/10 00/1000.jpg?hmac-td-KN_SOVg7MzoSsPbm1n9mgEy IKBfd_nQfqooed2xk (Caused by ProxyError('Ca nnot connect to proxy.', OSError('Tunnel co nnection failed: 403 Forbidden')))

What about this ? I'm getting this error .

Free accounts have restricted internet access and fastly.picsum.photos is not on our allowlist. You'll find all the instructions for requesting allowlist additions here. Alternatively you can consider upgrading your account.

ami este error con google.com

requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.google.es', port=443): Max retries exceeded with url: /search?q=Destinos+y+viajes&num=100 (Caused by ProxyError('Cannot connect to proxy.', OSErro r('Tunnel connection failed: 403 Forbidden'))) "

We added .google.es to the allowlist. Check again.

Kindly make this clearer in the packages. Maybe I didn't read it too well. Anyway, I've upgraded my account and my issue is solved.

@embadi43 That's also nice solution.

pleases add this link https://www.nseindia.com

@Santhosh97 You'll find all the instructions for requesting allowlist additions here.

Hello Pythonanywhere I have the same problem to access servicios.noticiasperu.pe

@danes070392 You'll find all the instructions for requesting allowlist additions here.

I am facing the same error but I am using youtube_transcript_api module

You'll find all the instructions for requesting allowlist additions here.

Great apps are made on this platform

+1 @partners

Hi, I am having the same error (403) forbidden with hacker news. Here is the API: https://hackernews.api-docs.io/v0/overview/introduction and https://github.com/HackerNews/API . I appreciate your assistance.

@hollowman00100 You'll also find all the instructions for requesting allowlist additions here.

HTTPSConnectionPool(host='chartink.com', port=443): Max retries exceeded with url: /screener/time-pass-48 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

You'll find all the instructions for requesting allowlist additions here.

httpsconnectionpool(host='www.streetinsider.com', port=443): max retries exceeded with url: /analyst+comments (caused by proxyerror('cannot connect to proxy.', oserror('tunnel connection failed: 403 forbidden' )))

@temaivanov You'll find all the instructions for requesting allowlist additions here.

requests.exceptions.ProxyError: HTTPSConnectionPool

Sorry, could you clarify? What is the code tat is generating that, and what is the full error message?

Hello! ProxyError: HTTPSConnectionPool(host='api.sandbox.upland.me', port=443): Max retries exceeded with url: /developers-api/auth/otp/init (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Documentation: https://api.sandbox.upland.me/developers-api/docs/# https://api.prod.upland.me/developers-api/docs/#

Please add to whitelist this two urls: https://api.sandbox.upland.me/developers-api https://api.prod.upland.me/developers-api

Thank you!

You'll find all the instructions for requesting allowlist additions here.

That said -- you have a paid account, so you can access sites that are not on the allowlist. If you're still getting 403 errors from the proxy after upgrading, it may be because you're running your code in a console that you started while you still had a free account, and those would have the old settings.

Need to fix this error.

An error occurred: HTTPSConnectionPool(host='www.investing.com', port=443): Max retries exceeded with url: /equities/abans-electricals (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

That's because www.investing.com is not on our allowlist for free accounts

i upgraded my account. Now no error is showing. The code works fine. This code retrieves information from the www.investing.com website in a web scraping manner with permission. This code fetches data from www.investing.com very successfully when running on my computer. But in PythonAnywhere the code runs without errors but the information fetched by the web scraping method is not output.

How do you scrape it?

Company information is scrape from the following links on the www.investing.com website.

https://www.investing.com/equities/abans-electricals

https://www.investing.com/equities/abans-fin

https://www.investing.com/equities/access-engin

https://www.investing.com/equities/acl-cables

https://www.investing.com/equities/acl-plastics

https://www.investing.com/equities/acme-printing---packaging

https://www.investing.com/equities/agalawatte-plantations

https://www.investing.com/equities/agstar-fertl

https://www.investing.com/equities/agstar-fertl

https://www.investing.com/equities/aitken-spence-hotel-holdings

https://www.investing.com/equities/aitken-spence-plantation-mana

https://www.investing.com/equities/aitken-spence

https://www.investing.com/equities/alliance-finance-co

https://www.investing.com/equities/alpha-fire-services

https://www.investing.com/equities/alumex-ltd

https://www.investing.com/equities/amana-bank

https://www.investing.com/equities/amana-takaful-life-ltd

https://www.investing.com/equities/amana-takaful

https://www.investing.com/equities/taprobane-hld

https://www.investing.com/equities/environmental-resources-invest.

https://www.investing.com/equities/amw-capital-leasing-and-finance-plc

https://www.investing.com/equities/anilana-hotels

https://www.investing.com/equities/arpico-insurance-ltd

https://www.investing.com/equities/asia-asset-fin

https://www.investing.com/equities/asia-asset-fin

https://www.investing.com/equities/asia-capital

https://www.investing.com/equities/asia-siyaka

https://www.investing.com/equities/asian-hotels---properties

https://www.investing.com/equities/asiri-surgical-hospital

https://www.investing.com/equities/asiri-hospital-holdings

https://www.investing.com/equities/assc-motor-fin

https://www.investing.com/equities/b-p-p-l-holding-plc

https://www.investing.com/equities/bairaha-farms

https://www.investing.com/equities/balangoda-plantations

https://www.investing.com/equities/bansei-royal

https://www.investing.com/equities/eruwala-res

https://www.investing.com/equities/bimputh-lanka

https://www.investing.com/equities/blue-diamonds-jewellery-worldwide

https://www.investing.com/equities/blue-diamonds-jewellery-ww-nv

https://www.investing.com/equities/bogala-graphite-lanka

https://www.investing.com/equities/bogawantalawa-tea-estates

https://www.investing.com/equities/brown---company

https://www.investing.com/equities/browns-beach-hotels

https://www.investing.com/equities/browns-invest

https://www.investing.com/equities/the-bukit-darah

https://www.investing.com/equities/ct-holdings

https://www.investing.com/equities/c.w.-mackie

https://www.investing.com/equities/capital-alliance-ltd

https://www.investing.com/equities/cargills-(ceylon)

https://www.investing.com/equities/cargo-boat-development

https://www.investing.com/equities/carsons-cumberbatch

https://www.investing.com/equities/central-finance

https://www.investing.com/equities/central-industries

https://www.investing.com/equities/ceylinco-insurance

https://www.investing.com/equities/ceylinco-insurance?cid=1167486

https://www.investing.com/equities/ceylon-beverage-holdings

https://www.investing.com/equities/ceylon-cold-stores

https://www.investing.com/equities/ceylon-grain-elevators

https://www.investing.com/equities/ceylon-guardian-investment-trust

https://www.investing.com/equities/ceylon-hospitals-nv

https://www.investing.com/equities/ceylon-hospitals

https://www.investing.com/equities/ceylon-hotels

https://www.investing.com/equities/ceylon-investment

https://www.investing.com/equities/ceylon-printers

https://www.investing.com/equities/ceylon-tea

https://www.investing.com/equities/ceylon-tobacco

https://www.investing.com/equities/chemanex

https://www.investing.com/equities/chevron-lubricants-lanka

https://www.investing.com/equities/chrissworld

https://www.investing.com/equities/cic-holdings-nv

https://www.investing.com/equities/cic-holdings

https://www.investing.com/equities/citizens-dev

https://www.investing.com/equities/citizens-development-business-non-v

https://www.investing.com/equities/citrus-leisure

https://www.investing.com/equities/city-housing---real-estate-co

https://www.investing.com/equities/co-operative-insurance

https://www.investing.com/equities/colombo-pharmacy

https://www.investing.com/equities/colombo-dockyard

https://www.investing.com/equities/colombo-fort-investments

https://www.investing.com/equities/colombo-inv-trus

https://www.investing.com/equities/colombo-land---development

https://www.investing.com/equities/commercial-bank-of-ceylon-nv

https://www.investing.com/equities/commercial-bank-of-ceylon

https://www.investing.com/equities/commercial-cre

https://www.investing.com/equities/commercial-development-company

https://www.investing.com/equities/convenience-foods

https://www.investing.com/equities/dankotuwa-porcelain

https://www.investing.com/equities/dfcc-bank

https://www.investing.com/equities/dialog-axiata

https://www.investing.com/equities/capital-alliance

https://www.investing.com/equities/diesel---motor-engineering

https://www.investing.com/equities/ceylon-tea-services

https://www.investing.com/equities/dipped-products

https://www.investing.com/equities/distilleries-company-of-sri-lanka

https://www.investing.com/equities/dolphin-hotels

https://www.investing.com/equities/eb-creasy---co

https://www.investing.com/equities/e-m-l-consultants

https://www.investing.com/equities/e-channelling

https://www.investing.com/equities/east-west-properties

https://www.investing.com/equities/eastern-merchants

https://www.investing.com/equities/eden-hotel-lanka

https://www.investing.com/equities/elpitiya-plantations

https://www.investing.com/equities/equity-two

https://www.investing.com/equities/expack-corrugated-cartons

https://www.investing.com/equities/expolanka-hldg

https://www.investing.com/equities/exterminators

https://www.investing.com/equities/first-capital-holdings

https://www.investing.com/equities/first-capital-treasuries

https://www.investing.com/equities/galadari-hotels

https://www.investing.com/equities/guardian-capital-partners

https://www.investing.com/equities/gestetner-of-ceylon

https://www.investing.com/equities/good-hope-co

https://www.investing.com/equities/hapugastenne-plantations

https://www.investing.com/equities/harischandra-mills

https://www.investing.com/equities/hatton-national-bank-nv

https://www.investing.com/equities/hatton-national-bank

https://www.investing.com/equities/hatton-plantations

https://www.investing.com/equities/haycarb

https://www.investing.com/equities/hayleys-mgt-knitting-mills

https://www.investing.com/equities/hayleys-fibre

https://www.investing.com/equities/amaya-leisure

https://www.investing.com/equities/hayleys

https://www.investing.com/equities/hela-apparel-holdings

https://www.investing.com/equities/hemas-holdings

https://www.investing.com/equities/hikkaduwa

https://www.investing.com/equities/hnb-assurance

https://www.investing.com/equities/hnb-finance-ltd

https://www.investing.com/equities/horana-plantations

https://www.investing.com/equities/hotel-sigiriya

https://www.investing.com/equities/the-housing-development-finance

https://www.investing.com/equities/hsenid-business-solutions-private

https://www.investing.com/equities/hunas-falls-hotels

https://www.investing.com/equities/hva-foods

https://www.investing.com/equities/indo-malay-plc

https://www.investing.com/equities/industrial-asphalts

https://www.investing.com/equities/janashakthi-ins

https://www.investing.com/equities/jat-holdings

https://www.investing.com/equities/jetwing-symphony

https://www.investing.com/equities/john-keells

https://www.investing.com/equities/john-keells-hotels

https://www.investing.com/equities/john-keells-holdings

https://www.investing.com/equities/kahawatte-plantations

https://www.investing.com/equities/kapruka-holdings

https://www.investing.com/equities/keells-food-products

https://www.investing.com/equities/kegalle-plantations

https://www.investing.com/equities/kelani-cables

https://www.investing.com/equities/kelani-tyres

https://www.investing.com/equities/kelani-valley-plantations

https://www.investing.com/equities/kelsey-developments

https://www.investing.com/equities/kotagala-plantations

https://www.investing.com/equities/kotmale-holdings

https://www.investing.com/equities/lb-finance

https://www.investing.com/equities/lake-house-printers---publishers

https://www.investing.com/equities/lanka-alum-inds

https://www.investing.com/equities/lanka-ashok-leyd

https://www.investing.com/equities/lanka-ceramic

https://www.investing.com/equities/lanka-credit-and-business-finance

https://www.investing.com/equities/lanka-ioc

https://www.investing.com/equities/lanka-milk-foods-(cwe)

https://www.investing.com/equities/asian-cotton

https://www.investing.com/equities/lanka-floortiles

https://www.investing.com/equities/lanka-ventures

https://www.investing.com/equities/lanka-walltile

https://www.investing.com/equities/lankem-ceylon

https://www.investing.com/equities/lankem-developments

https://www.investing.com/equities/laugfs-gas

https://www.investing.com/equities/laugfs-gas-plc

https://www.investing.com/equities/laugfs-power-ltd

https://www.investing.com/equities/laugfs-power-nv

https://www.investing.com/equities/laxapana-batteries

https://www.investing.com/equities/lee-hedges

https://www.investing.com/equities/lee-hedges

https://www.investing.com/equities/lanka-orix

https://www.investing.com/equities/lolc-general-insurance

https://www.investing.com/equities/lanka-orix-leasing

https://www.investing.com/equities/hydro-power

https://www.investing.com/equities/luminex-ltd

https://www.investing.com/equities/lvl-energy

https://www.investing.com/equities/mack-woods

https://www.investing.com/equities/madulsima-plantations

https://www.investing.com/equities/mahaweli-coconut

https://www.investing.com/equities/mahaweli-reach-hotels

https://www.investing.com/equities/malwatte-valley-plantations-non-vot

https://www.investing.com/equities/malwatte-valley-plantations

https://www.investing.com/equities/marawila-resorts

https://www.investing.com/equities/maskeliya-plantations

https://www.investing.com/equities/melstacorp-ltd

https://www.investing.com/equities/mercantile-investments-finance

https://www.investing.com/equities/mercantile-ship

https://www.investing.com/equities/merchant-bank-of-sri-lanka

https://www.investing.com/equities/millenium-h-d-l

https://www.investing.com/equities/muller---phipps-(ceylon)

https://www.investing.com/equities/multi-finance

https://www.investing.com/equities/myland-devs

https://www.investing.com/equities/namunukula-plantations

https://www.investing.com/equities/nation-lanka-finance

https://www.investing.com/equities/national-development-bank

https://www.investing.com/equities/nations-trust-bank

https://www.investing.com/equities/nations-trust-bank-nv

https://www.investing.com/equities/nawaloka-hospitals

https://www.investing.com/equities/nestle-lanka

https://www.investing.com/equities/odel

https://www.investing.com/equities/office-equipment

https://www.investing.com/equities/onally-holdings

https://www.investing.com/equities/orient-finance-plc

https://www.investing.com/equities/overseas-realty-(ceylon)

https://www.investing.com/equities/palm-garden-hotels

https://www.investing.com/equities/pan-asia-banking-corporation

https://www.investing.com/equities/panasian-power

https://www.investing.com/equities/pegasus-hotels-of-ceylon

https://www.investing.com/equities/peoples-insurance-plc

https://www.investing.com/equities/people-leasing

https://www.investing.com/equities/piramal-glass-ceylon

https://www.investing.com/equities/peoples-merchant-finance

https://www.investing.com/equities/printcare

https://www.investing.com/equities/r-i-l-property-plc

https://www.investing.com/equities/radiant-gems-international

https://www.investing.com/equities/raigam-waya

https://www.investing.com/equities/ramboda-ltd

https://www.investing.com/equities/regnis(lanka)

https://www.investing.com/equities/renuka-agri

https://www.investing.com/equities/renuka-city-hotel

https://www.investing.com/equities/renuka-shaw-wallace

https://www.investing.com/equities/renuka-holdings

https://www.investing.com/equities/renuka-holdings-plc

https://www.investing.com/equities/renuka-hotels-plc

https://www.investing.com/equities/hemas-power

https://www.investing.com/equities/richard-pieris-and-company

https://www.investing.com/equities/richard-pieris-exports

https://www.investing.com/equities/royal-ceramics-lanka

https://www.investing.com/equities/royal-palms-beach-hotels

https://www.investing.com/equities/sampath-bank

https://www.investing.com/equities/samson-international

https://www.investing.com/equities/sanasa-dev

https://www.investing.com/equities/sarvodaya-development-finance

https://www.investing.com/equities/sathosa-motors

https://www.investing.com/equities/selinsing

https://www.investing.com/equities/senkadagala-finance-plc

https://www.investing.com/equities/infrastre-devlp

https://www.investing.com/equities/serendib-hotels-nv

https://www.investing.com/equities/serendib-hotels

https://www.investing.com/equities/serendib-land

https://www.investing.com/equities/seylan-bank

https://www.investing.com/equities/seylan-bank-nv

https://www.investing.com/equities/seylan-developments

https://www.investing.com/equities/shalimar-estates

https://www.investing.com/equities/kalamazoo-systems

https://www.investing.com/equities/sierra-cables

https://www.investing.com/equities/sigiriya-village-hotels

https://www.investing.com/equities/singer-sri-lanka

https://www.investing.com/equities/singer-fin

https://www.investing.com/equities/singer-industries-(ceylon)

https://www.investing.com/equities/singhe-hospitals-ltd

https://www.investing.com/equities/smb-leasing-nv

https://www.investing.com/equities/smb-leasing

https://www.investing.com/equities/softlogic-cap

https://www.investing.com/equities/softlogic-fin

https://www.investing.com/equities/softlogic-hold

https://www.investing.com/equities/asian-alliance-insurance

https://www.investing.com/equities/sri-lanka-telecom-sltl

https://www.investing.com/equities/singalanka-standard-chemicals

https://www.investing.com/equities/sunshine-holdings

https://www.investing.com/equities/swadeshi-industrial-works-plc

https://www.investing.com/equities/swisstek-(ceylon)

https://www.investing.com/equities/taj-lanka-hotels

https://www.investing.com/equities/talawakelle-tea-estates

https://www.investing.com/equities/tangerine-beach-hotels

https://www.investing.com/equities/tea-smallholder-factories

https://www.investing.com/equities/textured

https://www.investing.com/equities/tess-agro-cse

https://www.investing.com/equities/tess-agro

https://www.investing.com/equities/the-colombo-fort-land---building

https://www.investing.com/equities/kandy-hotels

https://www.investing.com/equities/hotel-services-(ceylon)

https://www.investing.com/equities/the-lanka-hospital-corporation

https://www.investing.com/equities/the-lighthouse-hotel

https://www.investing.com/equities/nuwara-eliya-htl

https://www.investing.com/equities/three-acre-farms

https://www.investing.com/equities/tokyo-cement-co-(lanka)

https://www.investing.com/equities/tokyo-cement-co-lanka-nv

https://www.investing.com/equities/trans-asia-hotels

https://www.investing.com/equities/udapussellawa-plantations

https://www.investing.com/equities/union-assurance

https://www.investing.com/equities/union-bank-of-colombo-plc

https://www.investing.com/equities/union-chemicals

https://www.investing.com/equities/alufab

https://www.investing.com/equities/vallibel-finc

https://www.investing.com/equities/vallibel-power-erathna

https://www.investing.com/equities/vidullanka-cse

https://www.investing.com/equities/vidullanka

https://www.investing.com/equities/waskaduwa-beach

https://www.investing.com/equities/watawala-plantations

https://www.investing.com/equities/windforce

Check the responses that you are getting back from the site. It is likely that they have protections against scraping and that those work when you access from PythonAnywhere, but not when you access from your local machine.

Same error trying to connect to the api of guidonciniverdi.it which is a wordpress website. Can you add it to the allowed list?

You'll find all the instructions for requesting allowlist additions here.