473,808 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to feed multiple urls to an SgmlReader and using CommandLine

pk

I'm using SgmlReader (found at
http://www.gotdotnet.com/Community/U...s/Details.aspx
?SampleGuid=b90 fddce-e60d-43f8-a5c4-c3bd760564bc)an d I'm
trying to make it iterate over (process) numerous files
(actually, one feeds it urls to the various files.) The
download includes both a C# Solution for ASP.NET and a
CommandLine CSproject.

I have 2 questions:

1) What is the C# code to add to the Solution to make it
process many files (how can i feed it a list of urls to
iterate through...this is how I do it in Excel with VBA:
Sub Get_SEC_Data()
'
' Get_Data Macro

Dim i As Integer
Dim gFile As String

For i = 1 To 7735

'this assigns the path from the Worksheets("She et11") to
gFile (THE FILE TO OPEN)
gFile = Worksheets("She et11").Range("A 2:A7736").Find
(What:=i, After:=Workshee ts("Sheet11").R ange("A2"),
LookIn:=xlValue s, _
LookAt:=xlWhole , SearchOrder:=xl ByRows,
SearchDirection :=xlNext, MatchCase:=Fals e) _
.Offset(0, 1)

Next i
End Sub

So I'm just reading the urls from the cells in a
spreadsheet that also contains the code.

2) How does one use a CommandLine in conjunction with
other code of my making, ie, can I call the SgmlReader.exe
from within another program, or should I just put the code
to iterate through the urls directly into the ASP.NET code
as per question 1?

CommandLines are totally new to me so any guidance would
be of help.

Thanks,

Paul
Nov 16 '05 #1
0 1352

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2253
by: leegold2 | last post by:
Not sure if I should post in php or sql, $query = "SELECT page.*, url_pages.* FROM `page` LEFT JOIN `keywords` USING(`page_id`) LEFT JOIN URL_PAGES USING (`page_id`) WHERE MATCH(`keywords`.`keyword_txt`) AGAINST ('$keyword'IN BOOLEAN MODE)"; I got a keyword table, the fulltext finds the word in the keywords table and relates the page_id field to identical fields in the page table and the url table.
3
2477
by: ARGENTINA | last post by:
How do I copy using a php or cgi script a remote xml rss feed into my server? I.E the rss feed: http://www.lanacion.com.ar/herramientas/rss/index.asp?origen=2 Due to restrictions in flash player 7 I need to load a remote xml rss feed. I am using load.xml( http://www....
2
492
by: Ayende Rahien | last post by:
I've a mysterious problem using SgmlReader, I get an exception doing to following code: I get the following exception calling CleanHtml("Painless software management"); "System.ArgumentNullException: Value cannot be null. Parameter name: stream at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
7
6940
by: Ross Presser | last post by:
OK, I've been researching this problem and can't find a definitive answer yet. The situation is one that seems to have come up a few times to different folks. I am writing an application that will function as a windows service and will also present a GUI to the user. I don't want "Interact with desktop"; I want the same exe to run as a normal non-interactive service when started properly by the service control manager, or instead to run...
26
12610
by: Howard Brazee | last post by:
I would like to click on a URL of a html document that will open several URLs at once for me. Does someone have an example of a html document that will do this?
5
2270
by: Sonal | last post by:
Hi I am trying to provide infrastructure for RSS feeds on my Website. I dont intend to build any news aggregators. I just want my website to be enabled for providing RSS Feeds. I am using ASP.NET and C#. And I dont know where and how to begin. Do you know of any tutorials that may help me do that? Thanks, Sonal.
1
6506
by: ritesh.noronha | last post by:
Hi Group, I have a question regarding the commandline options of msbuild. I am currently using msbuild to build projects using the existing solution files. These solution files have references to external dll which have different paths on each machine. I am currently writing a build script and passing the specific path to the project file via the /p: switch of msbuild. My current build line is:
0
1563
by: matpublic | last post by:
Hello, I am having some issues printing to a dot matrix printer. The printer in question is a Lexmark form printer, loaded with fan fold paper using the tractor feed. The paper itself is a custom size. I've added a custom size form and set this to be the default form size for the printer, I've also set the tractor feed to be default (rather than manual page feed).
15
6006
Markus
by: Markus | last post by:
What i want to do: Get urls from the database and echo them out into a multiple columned table i.e. 4 pictures per row (recently uploaded table) MY problem is: I have, in my MySQL database, the urls to the pictures that have been uploaded. I'm not really sure how i would get the urls to go into multiple rows... i can do it as a single row by writing this $db = "mahcuz";
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10633
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10375
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.