Download » DOWNLOAD
and the other one just have filename (no extension) like
and here is what i want to do
I know i want to do something like this
for /f “tokens=2 delims=X ” %%I in ( ‘dir /b /s /a:-d -c “~/Downloads/*”‘) do (
which i can’t due to being a newbie
You can use powershell for that as well:
Get-ChildItem -Path “C:\path\to\directory” -Filter *.txt |
N1 (South Korea)
N1 is a cable news network in South Korea that primarily covers national and international current affairs. The network focuses on geopolitical issues and major international incidents including North Korea, Iraq, and the Arab Spring.
N1 broadcasts 24 hours a day through its flagship channel and numerous digital platforms.
It was officially launched on May 15, 2011 at 8:10 PM (KST) by Chief of Staff of the President of the Republic Kim Kwan-jin. The first N1 broadcast was presented by Choi Sun-young, who was chief of staff of the President of the Republic.
Other main presenters who have participated in the broadcasts include Kim Bum-jin, Kim Byung-kee, Jeong Yoo-sun, and Kim Ji-hye.
N1’s studios are located in the Cheong Wa Dae, in the section of the Ministry of Unification. The broadcasting area covers all South Korean cities and some parts of North Korea. The broadcasting area is determined by the Broadcasting System Act for the Public’s Defense.
Takijiro Obata, the head of the network, was born on March 29, 1965 in Gunma, Japan.
Current affairs program
N1 Special is an exclusive program of N1 channel for covering and
I am using the following code.
url = ”;
[sz url] = get(url);
The problem is that in the sz everytime it is long string followed by “\r
“. which is a problem for me.
I am reading this file using cURL and then using simplexml to convert it to an array with nodes.
The link on page is:
The data on that page is not structured in an organized way. Therefore, I cannot tell from the url and get the data from the link.
I can understand the reason when the page loads and put an if statement to check if the variable is a string. However, when I need to scan in files using curl and convert them to an array, I need to handle the “\r
“in a way I cannot think of.
How would I get rid of this “\r
” from a string in order to have a normal string?
The problem is that the HttpRequest doesn’t get the character encoding right, namely it is not sending the Accept-Encoding header in order to let the browser figure out the character encoding for you.
Change your cURL command to:
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, ‘gzip’);
curl_setopt($curl, CURLOPT_USERAGENT, ‘Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:22.214.171.124) Gecko/2008070208 Firefox/3.0.1’);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array(‘Expect:’));