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

Pages: 1-4041-

Piping curl into a pager

Name: Anonymous 2018-02-26 9:33

E.g.
$ curl www.google.com | sed '/<[^>]*>/d' | less

Could this be used as the basis for a text-based browser? Curl has POST and cookies support too, and Guile Scheme could be used instead of javascript.

Name: Anonymous 2018-02-26 12:05

It's a start, but everything would be either on one line or would have ridiculous white-space due to how it was created.

Name: Anonymous 2018-02-26 12:35

>>2
Easy, just insert a linefeed every 80 characters.

Name: Anonymous 2018-02-27 3:04

>>3
Sure, but that doesn't fix the other presentation problems.

Name: Anonymous 2018-02-27 3:04

But I guess since you said ``as the basis,'' it's different.

Name: Anonymous 2018-02-27 8:13

But nobody uses scheme on the web, what would the point be?

Name: Anonymous 2018-02-27 8:16

Improved: $ wget -q -O - https://dis.tinychan.org/prog/ | sed '/<[^>]*>/d' | less

Name: Anonymous 2018-02-27 8:18

	    	


1: Piping curl into a pager (7)
2: Code Thread (22)
3: Perl6 'fun' (9)
4: Nikita (47)
5: Is Computer Science the most redpilled field? (11)
6: CloverOS GNU/Linux (68)
7: Small /proggles/ girl (58)
8: Donald Knuth appreciation thread (14)
9: Touhou Cirno Radio / chiru.no (229)
10: The Big Bang Theory (8)
11: /prog/ Challenge 63: House of Annus (33)
12: Hey (28)
13: 3D modeling (7)
14: Prog chaleng (6)
15: Provably undecidable problems (10)
16: Being Stalked by Filthy Gypsy (22)
17: Linux Users are Rude Thieves (122)
18: the state of web development (8)
19: funny memes (47)
20: No ANIME please (12)
21: Where did our people go? (39)
22: ATTN whoever got our company IP banned from tinychan (7)
23: Simple way to ensure null-safety (3)
24: /prog/ Challenge: HP Bar (11)
25: /prog/ API (9)
26: hax my aniii (4)
27: the fallacies of being cummed inside (4)
28: best programming language for EDC? (4)
29: ive decided i like free and open source software (39)
30: Object Oriented Nonsense (21)
31: Security protocols (8)
32: Consider this (10)
33: Banned for Nothing (49)
34: /prog/ Challenge: RFC 6503 (25)
35: Is this the house of spastics? (7)
36: Symta Brevity (8)
37: so Twitter mass banned &quot;russian bots&quot; (3)
38: /prog/ Challenge: JPEG9001 (15)
39: /prog/ Challenge: Micro$oft Excel 2018 (23)
40: Why is ios so good? (27)




Name:
Name:
Name:
Name:

Don't change these.





Name:
Name:
Name:
Name:

Don't change these.




Name:
Name:
Name:
Name:

Don't change these.




Name:
Name:
Name:
Name:

Don't change these.




Name:
Name:
Name:
Name:

Don't change these.





Name:
Name:
Name:
Name:

Don't change these.





Name:
Name:
Name:
Name:

Don't change these.




Name:
Name:
Name:
Name:

Don't change these.





Name:
Name:
Name:
Name:

Don't change these.




Name:
Name:
Name:
Name:

Don't change these.


Don't change these.

Name: Anonymous 2018-02-27 9:02

>>8
Seems good.

Name: Anonymous 2018-02-27 9:14

>>9
Seems useless.

Name: Anonymous 2018-02-27 9:24

>>10
It has all the most important, functionality, poasting on \prog\ is worthless anyway.

Name: Anonymous 2018-02-27 11:08

if you can't follow links, your're are missing an essential feature of hypertext. even cudderbrowser has more functionality than this

Name: Anonymous 2018-02-27 11:14

>>12
it's the basis for a browser
this isn't a complete ENTERPRISE browsing solution

Name: Anonymous 2018-02-27 11:50

>>13
downloading and paginating text is not the same as browsing

Name: Anonymous 2018-02-27 13:32

>>14
It's pretty close tho

Name: Anonymous 2018-02-27 13:35

>>15
uncorrect

Name: Anonymous 2018-02-27 14:26

>>12,13
Next in plan is creating a 'lshttp' script (similar to ls) for listing all linked hyperlinks inside a given web page.
Something like
#!/bin/bash
curl $1 | sed '/<\s*a \s*href\s*=\s*"([^"])"/gi!d'

(Haven't tested yet.)

Name: Anonymous 2018-02-27 14:35

>>17
this is going to be the worst, least convenient way to browse the internet

Name: Anonymous 2018-02-27 15:07

>>17
Lol'd

Name: Anonymous 2018-02-27 15:50

>>18
your thinking on w3m-mode

Name: Anonymous 2018-02-27 18:06

>>1,8
Try
#!/bin/bash
curl -s $1 | sed 's/<[^>]*>//g' | less

Name: Anonymous 2018-02-27 18:08

>>17
you can't parse html with regex, don't be dumb

Name: Anonymous 2018-02-27 19:04

>>22
It's not about parsing, but about extracting the information I want, in this case, the list of links contained in the page.

Name: Anonymous 2018-02-27 19:24

>>22
my favorite stackmeme HE COMES haha :)

Name: Anonymous 2018-02-27 21:29

>>24
faggot

Name: Anonymous 2018-02-27 22:20

>>21
Curl is against my religion, I refuse to use it. I also feel offended that you use #!/bin/bash instead of #!/bin/sh.

Name: Anonymous 2018-02-27 23:04

>>26
Then substitute it for the world wide web application of your choice.
I also feel offended that you use #!/bin/bash instead of #!/bin/sh.
To be honest, I've started learning shell script recently, and haven't yet gathered enough experience to develop any sense of elitism between shells.

Name: Anonymous 2018-02-28 8:03

>>27
it's not about elitism, it's about portability. if your script works with #!/bin/sh, it will work with other Bourne-compatible shells (ash, dash, bash, probably ksh and zsh too but I'm not an expert on those)

Name: Anonymous 2018-02-28 9:09

>>28
Nobody cares. 99% of people use
bash
anyway.

Name: Anonymous 2018-02-28 9:11

>>29
I don't
guess I'm special

Name: Anonymous 2018-02-28 9:21

>>23
First of all, you meant /<\s*a \s*href\s*=\s*"([^"]*)"/
second, that won't work if the tag has any other attribute before href. So it only works for basic html.

>>24
?

Name: Anonymous 2018-02-28 9:45

>>30
Yes, you are. Are you using a meme OS like CloverOS or Plan 9?

Name: Anonymous 2018-02-28 10:46

>>32
I used to use 9front, but no

Name: Anonymous 2018-02-28 13:22

>>31
/<\s*a.*?\s*href\s*=\s*"([^"]*)"/g

Name: Anonymous 2018-02-28 13:24

:;'"``,, -=_+_=-+_=-==?<>cjkfdhsdl;d;'\;'';/.klhu[pld]we0=r-0[[pi4[pwo]wepe[]pe]repe[]pwe][wepwe[okdklk=[]]-\!!2@]]\]\[][]

Name: Anonymous 2018-02-28 13:34

>>35
What syntax language is this?

Name: Anonymous 2018-02-28 13:36

>>36
VALID

Name: Anonymous 2018-02-28 13:38

>>37
PERL

Name: Anonymous 2018-03-01 1:08

>>28
Makes sense. I'll start testing it with sh to check if it is portable.
>>18
I'll pipe that output into something else later, but it is useful to have that as a separate tool.

Name: Anonymous 2018-03-01 2:37

surfraw

Name: Anonymous 2018-03-01 7:13

>>38
C0DE

Name: Anonymous 2018-03-02 23:57

Could this be used as the basis for a text-based browser?
I'm gonna save you the trouble, and tell you this isn't a good idea. Lots of people had the same idea before you, and it never amounted to anything.
Just fork elinks and do what you want with that.

Name: Anonymous 2018-03-03 2:51

Regular expressions solve everything, apparently.

Name: Anonymous 2018-03-03 8:07

its a verygood idea

Name: Anonymous 2018-03-03 20:26

What exactly is wrong with elinks and lynx?

Name: Anonymous 2018-03-03 21:26

>>45

Close source poetering infested vile codans.

Name: Anonymous 2018-03-04 0:06

>>46
What?

Name: Anonymous 2018-03-04 0:37

>>47
He had a stroke :/

Name: Anonymous 2018-03-04 0:38

>>3
That would still look like shit

Name: Anonymous 2018-03-09 20:48

>>42
Just fork elinks
Is there actually any text browser that's still in development (at least recently)?
Always thought it was odd how there aren't any still made. It's not like it's a real waste.

Name: Anonymous 2018-03-09 22:35

>>50
Why does it still need development when it's already complete?

Name: Anonymous 2018-03-09 22:48

Name: Anonymous 2018-03-10 2:27

>>52
Feature complete

Name: Anonymous 2018-03-15 7:56

https://github.com/CMB/edbrowse

ed is the standard editor web browser

Name: Anonymous 2018-03-15 8:07

ed is the standard editor browser dubs

Name: Anonymous 2018-03-17 14:53

>>1
This idea is absolutely retarded.

But I was also wondering why people don't do this >>42. Lots of people would use a good terminal browser, so why is there no interest in creating/forking one?

And no, using elinks as-is is not ideal, as >>52-san says.

Name: Anonymous 2018-03-17 15:25

>>56
I don't know, why aren't you working on it?

Name: Anonymous 2018-03-17 15:32

>>57
I'm a follower, not a leader :^(

Name: Anonymous 2018-03-19 3:27

>>57
I'd work on one, at least.

Name: Anonymous 2018-03-19 3:34

>>59
u r all talk and no action

Name: Anonymous 2018-03-19 7:26

>>60
your're are an anus

Name: Anonymous 2018-03-19 15:11

>>61
Rude.

Name: Anonymous 2018-03-19 17:09

>>56
I've lookep up the possibility of doing this on Guile Scheme, and guile has a package with bindings for ncurses and also native support for most www operations.

https://www.gnu.org/software/guile-ncurses/
https://www.gnu.org/software/guile/manual/html_node/Web-Client.html

I've installed guile-ncurses the other day and tested it a bit, but still haven't found the time to get a prototype out.

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