구글 검색 결과 파일에 대한 "실제"링크?
저는 종종 Google을 사용하여 문서 (주로 PDF)를 검색합니다. 하지만 링크를 마우스 오른쪽 버튼으로 클릭하거나 그 위에 마우스 커서를 놓습니다. 내가 얻는 것은 실제 링크가 아니지만 다음과 같이 길고 혼란스러운 것입니다.
http://www.google.com/url?sa=t&source=web&cd=1&ved=0CCUQFjAA&url=http%3A%2F%2Fwww.marxists.org%2Freference%2Farchive%2Feinstein%2Fworks%2F1910s%2Frelative%2Frelativity.pdf&ei=Fai1TZq-Acugtgenw6DqDg&usg=AFQjCNFzYOTqpf68rQnuwW9K7wp39WL6Rg&sig2=z4RqvOLEEJsPohBqr1ghxQ
나는 이것이 뭔지 모르겠지만이 말도 안되는 것이 내가 원하는 것이 아니라는 것을 알고있다. 나는 http://www.marxists.org/reference/archive/einstein/works/1910s/relative/relativity.pdf
구글의 개입이 아닌 실제 링크를 원한다 .
Google 검색 결과에서 파일에 대한 "실제"링크를 얻으려면 어떻게합니까?
이것이 최선의 해결책은 아닐 수도 있지만, 여기에 크롬과 파이어 폭스를위한 코딩이나 애드온이 필요하지 않은 한 가지 방법이 있습니다. IE와 다른 사람들에 대해 비슷한 방법이 있다고 가정합니다. 그러나 적어도 IE는 일반적으로 복사하기 쉬운 상단의 URL 표시 줄에있는 링크를 사용하여 브라우저에서 PDF를 엽니 다.
검색 결과를 클릭하면 PDF가 다운로드됩니다.
이제 브라우저에서 최근 다운로드 목록을 엽니 다.
- 크롬, Ctrl + J
- Linux (?)의 Firefox, Ctrl + Shift + Y
이제 링크 복사
- Chrome : 파일 이름 아래에 나열된 URL을 마우스 오른쪽 버튼으로 클릭하고 "링크 주소 복사"를 선택합니다.
- Firefox : 파일을 마우스 오른쪽 버튼으로 클릭하고 "다운로드 링크 복사"를 선택합니다.
Google 검색 결과 URL을 정리하는 간단한 웹 사이트를 만들었습니다.
URL 정리
Google 검색 결과에서 복사 된 URL (예 : PDF 링크)은 필요 이상으로 복잡합니다. 이 도구는 불필요한 부분을 제거하고 페이지의 원래 URL은 그대로 둡니다.
@Blender 답변 의 의견 에서 Firefox 및 Chrome에 사용자 스크립트 를 설치하는 방법을 배웠습니다 .
이제 Google 검색 결과에서 URL을 마우스 오른쪽 버튼으로 클릭하고 복사하면 쓰레기 대신 실제 링크가 표시 됩니다 (죄송합니다, Google, 우리를 사랑한다는 것을 알고 있지만 악취 나는 추적 URL은 필요하지 않습니다) .
처음에는 @naxa 가 제안한대로 googlePrivacy를 사용했지만 요즘에는 버그가 있습니다. Web Applicatations SE에서 제공하는 스크립트 인 Turning off Google search results indirection 이 작업을 수행합니다. 사용자 스크립트 및 확장 기능이 있습니다.
- Chrome 웹 스토어에서 "Do not track me Google"
- Userscripts.org의 "Google을 추적하지 마십시오"
사용자 스크립트를 진행하는 방법에 대한 정보를 아래에서 확인하십시오.
UserScript 설치
Chrome에서는 Tampermonkey를 사용하여 설치했습니다 .
그리고 Firefox의 Greasemonkey .
결과
UserScript 이전
후
웹 애플리케이션의 관련 게시물 :
URL은 바로 여기에 있습니다.
&url=http%3A%2F%2Fwww.marxists.org%2Freference%2Farchive%2Feinstein%2Fworks%2F1910s%2Frelative%2Frelativity.pdf
Python과 같은 일부 언어로 이스케이프를 해제하십시오.
>>> import urllib
>>> print urllib.unquote('http%3A%2F%2Fwww.marxists.org%2Freference%2Farchive%2Feinstein%2Fworks%2F1910s%2Frelative%2Frelativity.pdf')
http://www.marxists.org/reference/archive/einstein/works/1910s/relative/relativity.pdf
따라서 Google URL에서 URL을 추출하기위한 스크립트는 다음과 같습니다.
import urllib
url = raw_input('What is the Google url? ')
url = url[url.find('&url=') + 5:]
url = url[:url.find('&')]
print urllib.unquote(url)
Google / Yandex 검색 링크 수정 이라는 Firefox 확장 프로그램을 사용 하고 있습니다. 잘 작동하며 링크 대상을 직접 복사 할 수 있습니다.
약간의 Google 검색을 수행하고 LinkWalker 라는 Firefox 애드온을 실행 했습니다 .
포함 및 클로킹 된 URL을 디코딩하고 쿼리 문자열 매개 변수를 제거하며 텍스트 선택을 클릭 가능한 링크로 변환하는 링크를위한 간단한 컨텍스트 메뉴 유틸리티입니다.
Sounds like that could do the trick.
When I look up this search in Internet Explorer I do indeed get this link
But when I use Chrome, I get what you want. So it seems to be an IE feature, or at least have something to do with the browser you are using. If you are in the position to change browsers, I would consider using chrome (tested, gives normal URL) or opera (tested, normal url) but not firefox (tested, gives funky url)
it a long link because Google wants to keep track of who found what, and actually clicked on a search result...
if you want the real link (the above is also a real link!)
type this on your linkx-prompt:
php -r "print urldecode('http://www.google.com/url?sa=t&source=web&cd=1&ved=0CCUQFjAA&url=http%3A%2F%2Fwww.marxists.org%2Freference%2Farchive%2Feinstein%2Fworks%2F1910s%2Frelative%2Frelativity.pdf&ei=Fai1TZq-Acugtgenw6DqDg&usg=AFQjCNFzYOTqpf68rQnuwW9K7wp39WL6Rg&sig2=z4RqvOLEEJsPohBqr1ghxQ');" | awk -F'&' '/url=/{ print $5 }'
See this tool
http://www.duvidasdeinformatica.com/blog/limpar-links-paginas-resultados-google/
It's in portuguese, but at the bottom you have a box where you can copy/paste the url, and it get's "converted" to the real one...
I think I read once, while having the same frustration, that it masks the actual URLs ONLY when you're logged into your google account and your accounts settings are configured for web history tracking.
IF my memory serves me correctly, you could try: - performing the search in a separate browser window using your browsers native "private" or "incognito" browsing feature - simply log out of your google account, get your results and log back in - go to google.com/history and click "Pause", which prevents future web activity from being saved, and then return to the same page after grabbing your results and click "Resume" (if you intend to use Web History).
If this sort of activity is something where you would routinely want to grab multiple URLs from the results and the above technique doesn't work as I recall, you can try something like an add-on to firefox, such as Copy Link URL, which provides the ability to copy the URLs of links you select which you could then paste into a text editor and replace the encoded elements with a Find & Replace.
Or, you could perhaps do a little research to find a website that will decode the URL for you. I found URL Deobfuscator on webtoolhub.com that does a good job of making the main / desired URL available for copy/paste by decoding the encoded characters, removing query strings, etc.
Cheers.
참고URL : https://stackoverflow.com/questions/5780809/real-link-to-file-in-google-search-results
'program story' 카테고리의 다른 글
dtype ( 'O')은 무엇입니까? (0) | 2020.10.30 |
---|---|
R Markdown, Knitr, Pandoc 및 Bookdown의 관계 (0) | 2020.10.30 |
Android 알 수없는 명령 'crunch' (0) | 2020.10.30 |
project.lock.json은 무엇입니까? (0) | 2020.10.30 |
정수를 정수로 변환하는 방법? (0) | 2020.10.30 |