I take the first steps in "python", I hope that experienced programmers will be able to help.

There is the following task:

  • To upload the necessary information, you need to "open" several tens of thousands of pages in "python". I wrote a code that copes with this task, but after uploading no more than 1000 pages, the server breaks the connection (I think there are restrictions on the maximum number of page openings from one ip).

I tried to add free proxy servers to the code, but I have not succeeded in this yet (as a rule, everything ends with the fact that proxy servers cannot communicate with the site server).

At the same time, through "Chrome", in which the "Browsec" extension is installed, the ability to access the site remains.

The question arises:

  • Is it possible to load the current settings of the "proxy server" from "Chrome" in "python" in order to try to "feed" them to the site I am trying to access?

Thank you in advance!

  • In general, this is not good, because sites can be protected. There is no need to use Chrome, set up TOR and you will be happy. - Vladimir Martyanov
  • 2
    Chrome proxy settings are taken from the general browser settings in the system. Stored in stackoverflow.com/questions/3050262/… registry. The second version of python-requests.org/en/latest/user/advanced/#proxies - 1d0
  • @ 1d0 +1, only not from the "browser settings in the system", but from the system settings. In the case of windows - really in ie those without customization. In the case of Linux - it depends on the working environment. For Gnome, Unity, KDE are also system settings. For others, you have to watch. - Crystal
  • @ 1d0 After looking at the first link, I went to the HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings registry and found, in particular, the AutoConfigProxy parameter whose value is wininet.dll. By the way, if you go into the Chrome settings, then in the block "Proxy server settings" it says that "This parameter is controlled by the Browsec extension." the first way to find out the current proxy settings is impossible. Or I'm wrong? - Oleg
  • ps also paid attention to the value of other registry settings from the Internet Settings: 1. ProxyEnable = 0, 2. MigrateProxy = 1 - Oleg

0