[RELEASE] KinoPoisk2 (Russian Movies) Scraper

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
hamp Offline
Member
Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #21
kerber Wrote:hi all.
Sorry for my bad english ))))
eng: Can a scrapper send a useragent message?
E.g.
Code:
request.useragent = "mozilla/5.0 (windows; u; msie 7.0; windows nt 6.0; en-us)";
request.accept = "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
when in mediaportal there was a similar problem, it has dared transfer kinopoisk useragent.

Rus:Кто нибудь знает, можно ли в скрапере передавать useragent. Когда в mediaportal'e была подобная проблема, он решилась обманом кинопоиска, передаче ему юзерагента.

Я бы мог попробовать, но незнаю куда этот код вставлять...
find
vdrfan Offline
Team-XBMC Developer
Posts: 2,787
Joined: Jan 2008
Reputation: 7
Location: Germany
Post: #22
English please.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules
For troubleshooting and bug reporting please make sure you read this first.
find
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #23
uhm, what's that about user agent? i stopped reading this thread pages back. if you want our attention

1) stick to the forum rules - english only
2) stay out of the dev forum unless you have something to contribute

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
hamp Offline
Member
Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #24
spiff Wrote:uhm, what's that about user agent? i stopped reading this thread pages back. if you want our attention

1) stick to the forum rules - english only
2) stay out of the dev forum unless you have something to contribute

Help...)
find
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #25
with what?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
hamp Offline
Member
Posts: 58
Joined: Jul 2008
Reputation: 0
Smile    Post: #26
Can a scrapper send a useragent message?
Code:
request.useragent = "mozilla/5.0 (windows; u; msie 7.0; windows nt 6.0; en-us)";
request.accept = "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
find
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #27
hmm, currently not. but it seems like something i would consider adding. ticket please

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
hamp Offline
Member
Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #28
Sorry, no time for ticket. Help.
find
hamp Offline
Member
Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #29
What are the differences version 8.10 and version 9 of the suorce Scraper?
http://trac.xbmc.org/browser/branches/8....Parser.cpp
http://trac.xbmc.org/browser/branches/9....Parser.cpp
http://trac.xbmc.org/browser/branches/8....perUrl.cpp
http://trac.xbmc.org/browser/branches/9....perUrl.cpp
(This post was last modified: 2009-06-11 18:48 by hamp.)
find
hamp Offline
Member
Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #30
Work/ Wait for test. Uploaded later.
//Заработало. Скоро выложу. Оказалось - ошибка было в коде скрапера.
find