Hello,
I'm trying to scrape daily titles from http://www.doopes.com/?cat=35444&lan...xc=&inc=&opt=0
But i'm getting lost using preg_match. Can someone help me with this script?
Thanks in advance!
[php]
[Enter code here]<?php
$today = date("Y-m-d");
// Get page
$url...
User Profile
Collapse
-
Developing an RSS scraper, but getting lost in all the regexps
-
please, someone?
Regards,
Dennis -
Cant put a wait on external application?
Hello all,
I have problems letting this application wait. I tried everything in my knowledge.
Here is the code:
...Code:System.Diagnostics.Process procdemux = new System.Diagnostics.Process(); procdemux.StartInfo.UseShellExecute = true; procdemux.StartInfo.CreateNoWindow = false; procdemux.StartInfo.RedirectStandardOutput -
I think its because the xml file is formed by an external application, and it doesnt have a wait on it, so it already starts grabbing while its still compiling.Leave a comment:
-
Hello again,
I have the feeling that there still is something wrong with the code.
JIT gives the following error:
...Code:************** Exception Text ************** System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
Leave a comment:
-
hello oohay251,
Thanks for your very quick reply! When i use that code, my whole code suddenly saying stuff like: "Invalid token '=' in class, struct, or interface member declaration"
I dont think that will work. Do you maybe have another example? maybe based on my code?
Thank you very much, its highly appreciated!Leave a comment:
-
boolean for uneven numbers
Hello,
I'm an beginner and i try to make a boolean for uneven numbers, but i cant figure out how!
This is as far as i came:
Does anyone know what todo at int number?Code:int number = 171; bool checkEvenNumber = ??? string mesg = Convert.ToString(checkEvenNumber); MessageBox.Show(mesg);
Thanks in advance!
Regards,
Denn... -
Awesome man, you made my day! there was a slight error in VidNode tho, it needed to be:
Thanks so much :DCode:XmlNode VidNode = doc.SelectSingleNode("/MediaInfo/File/StreamKind[@ID='Video']");
Regards,
Dennis...Leave a comment:
-
hello all,
the error that JIT spits out is "System.NullRef erenceException : Object reference not set to an instance of an object.". I also looked up xpath, but i cant find a good example of extracting a single value, can anyone help me with that?
Regards,
DennisLeave a comment:
-
Dear mwalts,
First of all, thanks for your swift reply, its highly appreciated.
The code that you have posted unfortunately doesnt work. JIT debug catches errors at line 36, which is the "newWidthBox.Te xt = xmlwidth.InnerT ext;" line.
Does anyone know what is wrong with it?
Regards,
DennisLeave a comment:
-
C# reading XML?
Hello,
I'm a beginner and i got serious issues with reading xml in C#.
This is my XML doc:
...Code:<?xml version='1.0' encoding='ISO-8859-1'?><MediaInfo><File CompleteFileName='ToDo'> <StreamKind ID='General'> <Stream ID='0'><Tag ID='Format/String'>AVI</Tag> <Tag ID='OveralBitRate/String'></Tag> <Tag ID='FileSize/String'>698
No activity results to display
Show More
Leave a comment: