Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

smoke Xarn everyday

Name: Anonymous 2010-06-23 2:51

Name: Anonymous 2010-06-25 20:27

>>40
403 MY ANUS

Name: Anonymous 2010-06-25 21:27

$ git clone git://github.com/Cairnarvon/progscrape.git
Initialized empty Git repository in progscrape/.git/
remote: Counting objects: 45, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 45 (delta 11), reused 0 (delta 0)
Receiving objects: 100% (45/45), 17.53 MiB | 1836 KiB/s, done.
Resolving deltas: 100% (11/11), done.

$ du
33      ./progscrape/.git/hooks
1       ./progscrape/.git/info
1       ./progscrape/.git/logs/refs/heads
1       ./progscrape/.git/logs/refs
2       ./progscrape/.git/logs
0       ./progscrape/.git/objects/info
17960   ./progscrape/.git/objects/pack
17960   ./progscrape/.git/objects
1       ./progscrape/.git/refs/heads
1       ./progscrape/.git/refs/remotes/origin
1       ./progscrape/.git/refs/remotes
0       ./progscrape/.git/refs/tags
2       ./progscrape/.git/refs
18007   ./progscrape/.git
18031   ./progscrape
18031   .


IHBT

Name: Anonymous 2010-06-25 21:55

>>38 here, >>40 was my first back to x please, you made my day bro.

Name: Anonymous 2010-06-26 1:50

>>40
change the useragent string, problem solved.
oh, and now you have to set verify_trips to true, because xarn couldn't figure out how to change the useragent string.

Name: Anonymous 2010-06-26 2:17

>>44
Did you miss the fact that the same update also changed the User-Agent?

Name: Anonymous 2010-06-26 2:34

>>44
Your insistence on being a knob-gobbler has created a syntax error.

Name: Anonymous 2010-06-26 2:39

>>45
no, what's the point of the how part. he changed it, but not in the correct way.

Name: Anonymous 2010-06-26 2:42

>>47
If you're suggesting progscrape should impersonate browsers, I take strong issue with calling that ``correct''.

Name: Anonymous 2010-06-26 2:44

>>48
so we should just say "oh well, the server is broken." and give up instead of working around shit like that?

Name: Anonymous 2010-06-26 6:31

>>12
Did you just associate Xarn with autism?  You're a fag!

Name: FrozenVoid 2010-06-26 6:47

>>50
Did you just associate >>12 with homosexuality? You're quite hypocritical.


__________________
Orbis terrarum delenda est

Name: Anonymous 2010-06-26 11:47

>>49
The server isn't broken. Scrapers are very intentionally blocked from accessing the HTML interface, and it's just common fucking courtesy to respect that.
If you don't understand that, maybe you should stick to the imageboards.

Name: Anonymous 2010-06-26 13:17

>>52
scrapers are blocked while shitposting scripts aren't. i'd consider that "broken".

Name: Anonymous 2010-06-26 23:45

>>53
That's because you're an idiot.

Name: Anonymous 2010-06-27 3:39

>>54
the front page is full of shitposts. are you saying it should be like that?

Name: Anonymous 2010-06-27 3:41

>>55
I'm saying that it has no bearing whatsoever on whether or not progscrape should lie.

Name: Anonymous 2010-06-27 4:09

I'm just running progscrape without receiving any 403. However, I noted that now there are two parsing failures at subject.txt.

Shitchan becomes even more broken every day. Amazing.

Name: Anonymous 2010-06-27 4:13

Also, I completely agree with >>16-30

Does it mean that /prog/ does actually have moderation? Un-fucking-believable!

Name: Anonymous 2010-06-27 4:25

>>57
The HTML interface is working again for me too. I don't know whether the filter was turned off or an exception was added for progscrape specifically or something else was going on.

The latest subject.txt corruption happened when MrVacBob deleted the 327 spam posts yesterday. He also deleted some threads entirely, so the number of posts in your database may no longer agree with the number of posts subject.txt says there should be.

Name: Anonymous 2010-06-27 4:44

Traceback (most recent call last):
  File "./progscrape.py", line 248, in <module>
    (thread[0], post, p['name'], p['meiru'], p['trip'], p['now'], p['com']))
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a te
xt_factory that can interpret 8-bit bytestrings (like text_factory = str). It is
 highly recommended that you instead just switch your application to Unicode str
ings.

Name: Anonymous 2010-06-27 4:52

>>68
adding db_conn.textfactory = str after the db_conn = sqlite3.connect(db_name) line seems to have fixed that.
i'd rather not muck around with FIOC's idiotic type system to figure out how to do the "highly recommended" fix instead.

Name: Anonymous 2010-06-27 4:53

>>61
s/textfactory/text_factory/

Name: Anonymous 2010-06-27 5:28

>>60-62
The funny part is that 2.6 is not supposed to be the incompatible release.

Name: Anonymous 2010-06-27 7:49

>>61
If switching to Unicode isn't trivial, the program was broken anyway.

Name: Anonymous 2010-06-27 11:32

BREAK MY ANUS

Name: Anonymous 2010-06-27 13:05

>>64
There isn't a single non-trivial program in a single language for which that is true.

Name: Anonymous 2010-06-28 0:32

>>64
yes, FIOC is broken when it comes to unicode.

Name: Anonymous 2010-06-28 1:18

>>16-30
There is a discontinuity in the /prog/trix!  Agents are coming! Run!

Name: Anonymous 2010-06-28 1:26

>>67
Not really. It's just that some libraries handle it inconsistently.

Name: Anonymous 2010-06-28 2:16

God Xarn you.

Name: Anonymous 2010-06-28 3:03

>>69
there's no reason not to make all strings unicode, or at least handle the conversions automatically.

Name: Anonymous 2010-06-28 3:06

>>71
handle the conversions automatically
It must be nice to live in a world with only one character encoding.

Name: Anonymous 2010-06-28 3:17

>>72
it's fairly easy to write code that can identify any encodings that are still in widespread use.

Name: Anonymous 2010-06-28 3:33

>>73
What gives you that idea, other than breath-taking ignorance of the issues involved? The terrific jobs web browsers are doing in that department?

Name: Anonymous 2010-06-28 3:38

>>74
Namely, because web browsers must conform to hundreds, possibly thousands of unique encodings- not just a few that are ``still in widespread use."

Name: Anonymous 2010-06-28 3:50

>>75
If anything, programming languages have to support even more.

Name: Anonymous 2010-06-28 3:58

Solution: all strings should be valid XML with an encoding declaration.

Name: Anonymous 2010-06-28 4:11

>>74
[/code]if string is not valid utf8 or ascii
  if string is valid shift_jis
    convert string from shift_jis to utf8
  else convert string from iso 8859-1 to utf8
return string[/code]

Name: Anonymous 2010-06-28 4:58

>>78
I like how even with your magically determine encoding functions your implementation is ridiculously insufficient.

Name: Anonymous 2010-06-28 5:09


DecoderFactory.CreateDecoder(EncodedString.encoding).Decode(EncodedString,NULL,NULL,NULL,NULL);

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List