08-19-2019
Quote:
Originally Posted by
sand1234
Hi Neo,
I didn't know about that - thanks! It looks like this will be useful.
Cheers.
Most commercial web sites like Skyscanner have APIs these days.
There is no need so "screen scrape" in most cases these days ... "screen scraping" is a relic of the distance "way of the dinosaur" past.....
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am trying to set up two hosts in a reverse proxy. The reverse proxy already has 8 servers running perfectly, but they are all simply mapping pure addresses, which I have registered internally and externally.
The latest two I wish to add are a bit different, they are app servers, one... (1 Reply)
Discussion started by: rboekdrukker
1 Replies
2. Shell Programming and Scripting
Hi,
I am trying to upload a file to a SQL database table. The column type is IMAGE. I am looking for a solution to upload a word doc file. I tried 3 approaches.
1) my $fileToStore = "mytest.doc";
open IPFILE, "<", $name;
binmode IPFILE;
while (<IPFILE>)
{
$fileToStore .= $_;
}
close... (1 Reply)
Discussion started by: b.paramanatti
1 Replies
3. Shell Programming and Scripting
hi all
I am new to unix and want to create a loop to repeat the loop and before that it ask me to do so.I know "while" may help but I put it in my work and getting stuk with it.any help appreciated. (13 Replies)
Discussion started by: samsami1971
13 Replies
4. UNIX and Linux Applications
Hello,
I am using Curl command to make a function call to a web service. The issue I am facing right now is:
curl h**p://www.google.com
with the above command, I get a XML file as a response. Also when i execute :
wget h**p://www.google.com
Replace ** : tt
I can see status as... (1 Reply)
Discussion started by: amitshete
1 Replies
5. Shell Programming and Scripting
hello folks,
i am stuck with this awk command. i need to calculate the sum of a column of values on a flatfile and i am using the following command :
awk -F"|" '{x += $10} END {print "Sum: "x}' standard_csv_file1.out
that flatfile contains 180 fields and i am getting the... (5 Replies)
Discussion started by: jdsony
5 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
i have a shell script with the first two lines as
#! /bin/ksh
set -x
when i try opening the file from unix using the command 'sh filename.sh' , i am getting the below error :
invalid optionline 2: set: -
Pls help
Use code tags for you code and data... (1 Reply)
Discussion started by: Rajankum
1 Replies
7. Shell Programming and Scripting
Hello,
Can somone help with this command please?
I have this output pattern in a file. I use a simple awk command to
print each field separated by comma. For example I use this to get the first
awk -F, "{ print $1 }"
"ABC=abcdefg,CDF=mnqrst,GGG=hrvyess"
issue:
What I... (7 Replies)
Discussion started by: mnassiri
7 Replies
8. Programming
I have thrown in the towel and cant figure out how to do this. I have a directory of html files that contain urls that I need to scrape (loop through) and add into a dictionary. An example of the output I would like is:
bigbadwolf.htlm: https://www.blah.com, http://www.blahblah.com,... (5 Replies)
Discussion started by: metallica1973
5 Replies
LEARN ABOUT SUSE
tk_getpixels
Tk_GetPixelsFromObj(3) Tk Library Procedures Tk_GetPixelsFromObj(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_GetPixelsFromObj, Tk_GetPixels, Tk_GetMMFromObj, Tk_GetScreenMM - translate between strings and screen units
SYNOPSIS
#include <tk.h>
int
Tk_GetPixelsFromObj(interp, tkwin, objPtr, intPtr)
int
Tk_GetPixels(interp, tkwin, string, intPtr)
int
Tk_GetMMFromObj(interp, tkwin, objPtr, doublePtr)
int
Tk_GetScreenMM(interp, tkwin, string, doublePtr)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter to use for error reporting.
Tk_Window tkwin (in) Window whose screen geometry determines the conversion between absolute units and pixels.
Tcl_Obj *objPtr (in/out) String value specifies a distance on the screen; internal rep will be modified to cache converted dis-
tance.
const char *string (in) Same as objPtr except specification of distance is passed as a string.
int *intPtr (out) Pointer to location in which to store converted distance in pixels.
double *doublePtr (out) Pointer to location in which to store converted distance in millimeters.
_________________________________________________________________
DESCRIPTION
These procedures take as argument a specification of distance on the screen (objPtr or string) and compute the corresponding distance
either in integer pixels or floating-point millimeters. In either case, objPtr or string specifies a screen distance as a floating-point
number followed by one of the following characters that indicates units:
<none> The number specifies a distance in pixels.
c The number specifies a distance in centimeters on the screen.
i The number specifies a distance in inches on the screen.
m The number specifies a distance in millimeters on the screen.
p The number specifies a distance in printer's points (1/72 inch) on the screen.
Tk_GetPixelsFromObj converts the value of objPtr to the nearest even number of pixels and stores that value at *intPtr. It returns TCL_OK
under normal circumstances. If an error occurs (e.g. objPtr contains a number followed by a character that is not one of the ones above)
then TCL_ERROR is returned and an error message is left in interp's result if interp is not NULL. Tk_GetPixelsFromObj caches information
about the return value in objPtr, which speeds up future calls to Tk_GetPixelsFromObj with the same objPtr.
Tk_GetPixels is identical to Tk_GetPixelsFromObj except that the screen distance is specified with a string instead of an object. This
prevents Tk_GetPixels from caching the return value, so Tk_GetAnchor is less efficient than Tk_GetPixelsFromObj.
Tk_GetMMFromObj and Tk_GetScreenMM are similar to Tk_GetPixelsFromObj and Tk_GetPixels (respectively) except that they convert the screen
distance to millimeters and store a double-precision floating-point result at *doublePtr.
KEYWORDS
centimeters, convert, inches, millimeters, pixels, points, screen units
Tk 8.1 Tk_GetPixelsFromObj(3)