Hello fellow DPers, I have two question and i hope someone to guide me on the right resources for this. Question number one: There is this web-resource from which i want to download all the images. However the access to the images directory is locked. e.g. www.example.com/images/ is locked. I know that the images format is www.example.com/images/1.jpg than www.example.com/images/2.jpg and so on. However i do not know up till what number does it go. Is there a program or a code that will help me download all the images given that i input the initial in structure? Question number two: Is there a program or code that will allow me to browse some text and delete everything that does not match an exact string. e.g. in a text there are 4 strings <mary>loves</mary> , the output should be only the 4 strings that contain the specified string. Thank you.
1) Yes there are many programs that lets you download images or files from any websites that are available for public. For locked contents, you might need access to that files, or if you are hacking expert!! then no one can stop you ! 2) Yes, You can do that. Either you can create batch (.bat) files or .php programs or .c programs to do this type of task. All you need to do is, - Create one loop in your program, which will execute until your event ends - now open your file using your programs loops which contains too many characters - next is to search for your defined characters e.g; <mary>loves</mary> or whatever you want. - copy all outputs to an array or copy that outputs to another temporary file. - After searching all texts, you need to create one more blank file using your program and copy data of temporary file to newly created file (it will contain your final data as output) - now delete temporary file using your program. - And you're done !! To create a program you can hire a programmer ! because its kinda difficult tasks. However, i suggest you not to believe on beginners for this job, because they may be in a trouble.. Hope it work ! Thanks.
Some keywords you could use: Image Scraper Website Scraper File_Get_Contents File_Put_Contents Curl FOpen They should get you what you're looking for when you click here and type them in.