Модераторы: Daevaorn
  

Поиск:

Ответ в темуСоздание новой темы Создание опроса
> работа socket через прокси 
:(
    Опции темы
kulibinka
Дата 16.1.2007, 02:35 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Бывалый
*


Профиль
Группа: Участник
Сообщений: 191
Регистрация: 20.11.2006

Репутация: 2
Всего: 4



В чем дело: проверяю на занятость домены

вот код:

Код

import socket

host = 'testme.org'
ripn_center = 'whois.pir.org'
port = 43

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((ripn_center, port))
s.send(host + "\r\n")

page_text = []
while True:
    data = s.recv(8192)
    if not data: break
    page_text.append(data)
page_text = "".join(page_text)

s.close()

print page_text


Когда pir.org не слишком часто дергать, он буде выдавать что-то типа:

Цитата

NOTICE: Access to .ORG WHOIS information is provided to assist persons in
determining the contents of a domain name registration record in the Public Interest Registry
registry database. The data in this record is provided by Public Interest Registry
for informational purposes only, and Public Interest Registry does not guarantee its
accuracy.  This service is intended only for query-based access.  You agree
that you will use this data only for lawful purposes and that, under no
circumstances will you use this data to: (a) allow, enable, or otherwise
support the transmission by e-mail, telephone, or facsimile of mass
unsolicited, commercial advertising or solicitations to entities other than
the data recipient's own existing customers; or (b) enable high volume,
automated, electronic processes that send queries or data to the systems of
Registry Operator or any ICANN-Accredited Registrar, except as reasonably
necessary to register domain names or modify existing registrations.  All
rights reserved. Public Interest Registry reserves the right to modify these terms at any
time. By submitting this query, you agree to abide by this policy.

Domain ID:D13837485-LROR
Domain Name:TESTME.ORG
Created On:24-Nov-1999 18:06:57 UTC
Last Updated On:19-Sep-2006 15:33:40 UTC
Expiration Date:24-Nov-2009 18:06:57 UTC
Sponsoring Registrar:Network Solutions LLC (R63-LROR)
Status:CLIENT TRANSFER PROHIBITED
Registrant ID:26306814-NSI
Registrant Name:QUESTION MARK COMPUTING LTD
Registrant Organization:QUESTION MARK COMPUTING LTD
Registrant Street1:5TH FLOOR, HILL HOUSE, HIGHGAT
Registrant Street2:
Registrant Street3:
Registrant City:LONDON
Registrant State/Province:
Registrant Postal Code:N19 5NA
Registrant Country:GB
Registrant Phone:+1.4402072
Registrant Phone Ext.:
Registrant FAX:
Registrant FAX Ext.:
Registrant Email:[email protected]
Admin ID:26306816-NSI
Admin Name:QUESTION MARK COMPUTING LTD
Admin Organization:QUESTION MARK COMPUTING LTD
Admin Street1:5TH FLOOR, HILL HOUSE, HIGHGAT
Admin Street2:LONDON, N19 5NA
Admin Street3:
Admin City:Unknown
Admin State/Province:
Admin Postal Code:99999
Admin Country:GB
Admin Phone:+1.4402072
Admin Phone Ext.:
Admin FAX:
Admin FAX Ext.:
Admin Email:[email protected]
Tech ID:5405617-NSI
Tech Name:Marc Bailey
Tech Organization:Fountainhead Industries
Tech Street1:PO Box U227
Tech Street2:University of Wollongong
Tech Street3:
Tech City:Wollongong
Tech State/Province:NSW
Tech Postal Code:2522
Tech Country:AU
Tech Phone:+1.61242269419
Tech Phone Ext.:
Tech FAX:+1.61242274019
Tech FAX Ext.:
Tech Email:[email protected]
Name Server:NS1.MYDOMAIN.COM
Name Server:NS2.MYDOMAIN.COM
Name Server:NS3.MYDOMAIN.COM
Name Server:NS4.MYDOMAIN.COM
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:


А теперь проблема - если передергать, он начинает сказки рассказывать типа 
Цитата

WHOIS LIMIT EXCEEDED - SEE WWW.PIR.ORG/WHOIS FOR DETAILS


ВОПРОС: как к этому делу прикрутить прокси, чтобы PIR.ORG не возмущался smile
А то 2 часа гугления меня совершенно расстроили...


ПС: извините за название - не дописал, сорвалось smile
Должно быть "работа socket через прокси".

Это сообщение отредактировал(а) kulibinka - 16.1.2007, 03:46
PM MAIL   Вверх
albertn
Дата 16.1.2007, 10:19 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 368
Регистрация: 17.7.2006
Где: г. Ставрополь

Репутация: 30
Всего: 34



Цитата(kulibinka @  16.1.2007,  02:35 Найти цитируемый пост)
WHOIS LIMIT EXCEEDED - SEE WWW.PIR.ORG/WHOIS FOR DETAILS

А ты читал что написано по этой ссылке?
Цитата

5. When will the “WHOIS LIMIT EXCEEDED” message be displayed?
When any user of the PIR Web site WHOIS service or the Port 43 WHOIS service has exceeded the query limit for that service, all users will be blocked from using the PIR WHOIS service.

PM WWW ICQ   Вверх
kulibinka
Дата 16.1.2007, 14:29 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Бывалый
*


Профиль
Группа: Участник
Сообщений: 191
Регистрация: 20.11.2006

Репутация: 2
Всего: 4



Читал. Вот главные выдержки:

Цитата

4. Why am I receiving this error message?
“WHOIS LIMIT EXCEEDED — SEE WWW.PIR.ORG/WHOIS FOR DETAILS.” PIR has introduced rate-limiting logic on the WHOIS Port 43 server and similar rate-limiting logic on the PIR Web site.

PIR monitors all IP addresses accessing the .ORG WHOIS Port 43 server. All traffic will be logged, and rate-limit validation logic will be applied to limit access by any given IP address to a maximum of four queries per minute. If a unique IP address exceeds the limit, the query will be stopped, and the error message will be displayed.

WHOIS queries submitted through the Web-based WHOIS search mechanism are limited to 50 queries per minute. 

5. When will the “WHOIS LIMIT EXCEEDED” message be displayed?
When any user of the PIR Web site WHOIS service or the Port 43 WHOIS service has exceeded the query limit for that service, all users will be blocked from using the PIR WHOIS service. 

6. Why is PIR limiting WHOIS Port 43 access for the general public?
PIR is committed to protecting the rights and privacy of registrants of .ORG domain names. The previously unlimited access to Port 43 had led to abuses by speculators and data miners, often using automated programs to make inquiries. Rate-limiting logic was introduced to reduce this access and was based on consultation with ICANN and registrars. 


Суть: если с одного айпишника делать 4 запроса в минуту, то все будет хорошо.
Вот поэтому я и создал тему - чтобы можно было делать по 4 запроса на один прокси в минуту.
PM MAIL   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
1 Пользователей читают эту тему (1 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Python: Общие вопросы | Следующая тема »


 




[ Время генерации скрипта: 0.0626 ]   [ Использовано запросов: 21 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.