Questions tagged [html]

HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
328 views

Using wget or another command, how to download now but convert links later?

The useful option wget --convert-links or wget -k makes "links in downloaded HTML or CSS point to local files." It makes two passes: Pass 1: download files. Pass 2: convert links. I want to do pass ...
3
votes
1answer
1k views

How do I run webm video file in firefox using HTML5 on linux?

I am using apache server on linux and want to run a .webm video file. I have .webm video file which i am trying to run in firefox (V 12.0) using HTML5 but the browser is showing as "no video with ...
2
votes
0answers
166 views

how to output html to a file with xmllint?

How do I get xmllint to output to a file? thufir@dur:~/xmllint$ thufir@dur:~/xmllint$ xmllint --html http://www.skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450 --xpath '//div[@class = "tides"]' - ...
2
votes
0answers
516 views

How to paste an HTML table into Libre Office Calc without losing structure

I want to paste an HTML table into Libre Office Calc. The HTML table rows contain images (in column 1) that should stay with their appropriate row. However, when I paste my HTML into Calc, the images ...
1
vote
0answers
20 views

How to make redirect go to alternate web page if Shift key is being held?

I am trying to make a secret alternate redirect on a web page that redirects to an alternate page when holding down the key, otherwise it redirects to the regular redirect page. Example/Clarification:...
1
vote
2answers
433 views

Change the background color (html format) if a number is less than a threshold

I have the folowing file which is called test.html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="SQL*Plus ...
1
vote
1answer
119 views

Mass convert thousands of downloaded (with wget) HTML documents to DOCX

I would like to process and convert all the files downloaded from wget in HTML format from a URL. I want to convert a complete web page to DOCX format. We are talking about 3000 HTML documents ...
1
vote
1answer
760 views

Edit HTML files from the command line

I'm looking for a way to edit HTML files from the command line similar to sed or awk, but using path expressions similar to jq or pup. In particular, newlines, white space and other formatting details ...
1
vote
0answers
554 views

How to generate a nmap HTML report with python?

Given an .xml output file from a nmap scan, how would you suggest to generate an html report from this file? nmap proposes the following utility with shell (reference): xsltproc xsltproc <nmap-...
1
vote
0answers
34 views

Firefox always opens behind calling program

I am opening a local html file with Firefox on RHEL 6.3 with Gnome 2.28.2 and Metacity 2.28.0. Unfortunately, regardless of how I open it (terminal or java) Firefox always opens in the background, ...
1
vote
1answer
53 views

Match a number with fixed digits while scraping web content

I'm trying to parse a source web pages, trying to find all href similar to this: href='http://example.org/index.php?showtopic=509480 where the number after showtopic= is random (and with 6 fixed ...
1
vote
2answers
668 views

Rename all spaces in image file names inside html php files

Inside different htm.gz, html.gz and php.gz web files I have images and the ones in .jpg format have name with space instead of "-", but in /images/ directory where all images are located they have "-"...
1
vote
1answer
833 views

Text extraction from HTML page

I am using xidel command to extract text from HTML page. Here is my code xidel http://www.ip-adress.com/ip_tracer/8.8.8.8 --extract "<table> <tbody> <tr> <td> <...
1
vote
0answers
562 views

extracting text from HTML

I have this page. I want to extract text from html page, particularly table heading (th) and table data (td). For example: Country: United States (US),State: California where th = Country and td = ...
1
vote
2answers
192 views

Ubuntu SELinux - why different types for files var_t vs file_t

I have Ubuntu 14.04 running on two vm's. I have have permissive SELinux enabled on both. On system1, all of my files + linked directories in /var/www/html are marked as var_t and the symbolic linked ...
1
vote
0answers
207 views

Can htmldoc create multi-level pdf bookmarks?

I downloaded an online html book (http://www.cim.mcgill.ca/~franco/OpSys-304-427/lecture-notes/lecture-notes.html), by the following command wget -r -np -nH --cut-dirs=3 -p -k http://www.cim.mcgill....
0
votes
0answers
8 views

How to use PHP 5 CLI server

I am PHP beginner. I need to add php script in .html file. From what i understand, PHP is a server script. Hence, it need to have web server to execute. From the online source, most of the webserver ...
0
votes
0answers
67 views

How to install PHP simple HTML DOM Parser on Linux (Debian)?

I have just started learning web scraping, and so far, I have understood that I need to install a library called simple_html_dom. Everywhere I have seen for now, people download it from sourceforge ...
0
votes
0answers
9 views

Can I create a Eclipse or Intellij project via a weblink?

I'm looking for a way to create a new Eclipse or IntelliJ project via a link or a button on a website. So for example a link where I can pass a pre-defined name for the project and all that stuff. Is ...
0
votes
0answers
37 views

How can I make wget rename files based on link name?

Everything I'm finding is based on URL, but I want the opposite. I have an html index with a list of links. The links are named like Apples, oranges, grapes, bananas. The files associated with those ...
0
votes
1answer
9 views

Why does the help for some applications open in Seamonkey composer?

I am running Linux in the form of openSuse Leap 15.0 with KDE Plasma 5.12.6 and have applied patches regularly. If I run some applications, for example Gimp (2.8.22), and ask for help, it starts ...
0
votes
0answers
146 views

Running a script as a webpage

So I've got basically the most rudimentary understanding of how webpages work, I installed httpd, apache, php and some other stuff, and now if I put files in /var/www/html people can access them by ...
0
votes
0answers
101 views

How to install HTML5/JavaScript to Netbeans?

I installed the NetBeans Connector plugin to Chromium on my MacBook. That worked perfectly. I could create new projects in HTML5/Javascript. I tried to do the same on my Linux Mint 18.3 computer. But ...
0
votes
1answer
226 views

Remove <div> blocks matching a string from a huge html file

I am on Mac and I want to remove multiple <div> blocks from a html file that match a certain string. I tried to use sed for it the following way, but failed: First I escaped all the symbols in ...
0
votes
1answer
48 views

Display a table from a website

I have an idea for what I want to do, but am not sure exactly what to do. I want to curl http://www.bostonglobe.com/sports/tvradio/listings then somehow display a table on this page. The table is <...
0
votes
0answers
679 views

Multiple html files in message body-mailx

I'm using pandas to get csv to html #!/usr/bin/python import pandas as pd import sys import json sys.stdout = open('output.html','wt') df = pd.read_csv('users.csv') print(df.to_html()) For another ...
0
votes
3answers
32 views

Parsing: extract a version from a html line

I would like to extract version number from this string: <a href="/url/version/tree/1.0.1alpha11" class="css-truncate"> Note that '/url/version/tree/' may change (ex: from /url/version/tree/ ...
0
votes
1answer
456 views

How to configure Apache Webserver to load GIF

I would like to understand how can i configure Apache webserver in a way that whenever someone sends a http request it should just load a 1x1 Pixel Gif.. Currently, response that we get is the text ...
0
votes
0answers
95 views

wgetting links that are written in script form - not plain html

I use wget to download all the html pages in an online gallery - in order to grab all the links to the full size images as follows: wget --wait=3 --user-agent=Webtography --no-cookies --timestamping -...
0
votes
1answer
194 views

Easy Way to Wrap CRON Output in HTML PRE?

I use Gmail and every so often I have to hack it back in that text/plain email should be rendered in a monospace font. This makes it much easier to skim system-generated reports, &c. The problems ...
0
votes
1answer
118 views

i want to remove tag in xml when it is repeating multiple times

I want to comment particular tag with particular value from xml when it is repeating multiple times example: <t1> <t2>hi<t2/> <t1/> <t1> <t2>hello<t2/> <...
0
votes
1answer
82 views

How can I regex specific links from rss content in yahoo pipes?

From a RSS content I'd like to remove everything except specified href links Example: <div class='text'> <div class="center"> <b><a rel="nofollow" target="_blank" href="http://...
0
votes
0answers
679 views

Use Rsync with HTTP

Is it possible to use rsync with an HTML POST request? If so what would the rsync command look like? For example let's say using HTML5 I have this : <form method="post" enctype="multipart/form-...
-1
votes
1answer
71 views

How do I exclude pre tags from HTML minification using sed?

I am trying to minify HTML using sed My problem: I don't want to minify anything inside <pre> tags, but can't make it work.. Here is what I am using: sed ':a;N;$!ba;s@>\s*<@><@g' $...
-1
votes
1answer
366 views

How to add multiple table rows in awk

Basically I am trying to print a table with 4 fields per row and the 5th field should go to the second row all the way to 8th field. awk 'BEGIN{ FS=" " print "<HTML><BR>&...
-1
votes
3answers
1k views

How to cut part of a “curl” answer

I have been having a look at this for a while but I haven't found any answer yet. I've got a curl command to send a HTTP POST request to a server, then I have created a script called "tmg.sh" which ...