Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Russian links - HELP REQUESTED #3269

Open
eshellman opened this issue May 22, 2019 · 2 comments
Open

Broken Russian links - HELP REQUESTED #3269

eshellman opened this issue May 22, 2019 · 2 comments
Labels

Comments

@eshellman
Copy link
Collaborator

@eshellman eshellman commented May 22, 2019

Below is a list of failing links in our Russian lists
You can help improve this repo by resolving the problems.

A failing link may be a website or resource that has disappeared. You can submit a PR

  • removing the link (maybe the resource is obsolete.)
  • correcting the link (sometimes things move)
  • replacing the link (make sure the link is authorized, or the resource is open-licensed). Often a link to internet archive's wayback machine is useful.

Sometimes a link is only temporarily failing, or the site blocks link-checkers. If that's the case, leave a note on this issue.

In your PR, reference this issue.

Thanks for your help!

free-programming-books-ru.md

@ex00
Copy link

@ex00 ex00 commented May 23, 2019

Hi @eshellman
I suppose all 404 errors for ru.wikibooks.org is problem checker tool, cause on
https://raw.githubusercontent.com/EbookFoundation/free-programming-books/master/free-programming-books-ru.md I don't see invalid links for this resource

>>>target_url="https://raw.githubusercontent.com/EbookFoundation/free-programming-books/master/free-programming-books-ru.md"
>>>import requests
>>>data = requests.get(target_url).text
 >>>> urls = list(filter(lambda x: x.startswith("https://ru.wikibooks.org/"), data.replace("("," ").replace(")","").split(" ")))
# ['https://ru.wikibooks.org/wiki/Ассемблер_в_Linux_для_программистов_C', 'https://ru.wikibooks.org/wiki/Язык_Си_в_примерах', 'https://ru.wikibooks.org/wiki/Учебник_Python_2.6', 'https://ru.wikibooks.org/wiki/Ruby']
>>> for url in urls:
...     print("[{}]:{}, {}".format(url,requests.get(url).status_code, requests.get(url).url))
... 
[https:/ru.wikibooks.org/wiki/Ассемблер_в_Linux_для_программистов_C]:200, https:/ru.wikibooks.org/wiki/%D0%90%D1%81%D1%81%D0%B5%D0%BC%D0%B1%D0%BB%D0%B5%D1%80_%D0%B2_Linux_%D0%B4%D0%BB%D1%8F_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%81%D1%82%D0%BE%D0%B2_C
[https:/ru.wikibooks.org/wiki/Язык_Си_в_примерах]:200, https:/ru.wikibooks.org/wiki/%D0%AF%D0%B7%D1%8B%D0%BA_%D0%A1%D0%B8_%D0%B2_%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D0%B0%D1%85
[https:/ru.wikibooks.org/wiki/Учебник_Python_2.6]:200, https:/ru.wikibooks.org/wiki/%D0%A3%D1%87%D0%B5%D0%B1%D0%BD%D0%B8%D0%BA_Python_2.6
[https:/ru.wikibooks.org/wiki/Ruby]:200, https:/ru.wikibooks.org/wiki/Ruby

As we can see from python code output all wikibooks pages available.

Also I suppose that
https://younglinux.info/c
https://younglinux.info/linux

@eshellman
Copy link
Collaborator Author

@eshellman eshellman commented May 23, 2019

looks like encoding problems to me. Unicode characters need to be % encoded in the url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant