Open 0xTanvir opened 5 years ago
I have run the code that you have given as sample using AddRawUrl and AddUrl and it is working okay. I don't know if I am missing something. My outputs for both cases are the same.
`it@higor:~/testes/colly $ go run main.go running with AddUrl [http://best-toy-importers.com/global-toy-importer-directory/feuchtmann-gmbh-spielwarenfabrik-3/ FEUCHTMANN GMBH SPIELWARENFABRIK playthings, toys, gifts, hobby products manufacturer, importer and distributor in GERMANY - GERMANY +49 9843- www.feuchtmann-gmbh.de servi@feuchtmann-spielzeug.de] Scrapped: record http://best-toy-importers.com/global-toy-importer-directory/feuchtmann-gmbh-spielwarenfabrik-3/ [http://best-toy-importers.com/global-toy-importer-directory/limox-gmbh/ LIMOX GMBH playthings, toys, gifts, hobby products importer and distributor in GERMANY Lilienthalstrasse 13, 34123 Kassel GERMANY +49 561-507 www.limox.de offi@limox.de] Scrapped: record http://best-toy-importers.com/global-toy-importer-directory/limox-gmbh/ Scraping finished....
it@higor:~/testes/colly $ go run main.go running with AddRawUrl [http://best-toy-importers.com/global-toy-importer-directory/feuchtmann-gmbh-spielwarenfabrik-3/ FEUCHTMANN GMBH SPIELWARENFABRIK playthings, toys, gifts, hobby products manufacturer, importer and distributor in GERMANY - GERMANY +49 9843- www.feuchtmann-gmbh.de servi@feuchtmann-spielzeug.de] Scrapped: record http://best-toy-importers.com/global-toy-importer-directory/feuchtmann-gmbh-spielwarenfabrik-3/ [http://best-toy-importers.com/global-toy-importer-directory/limox-gmbh/ LIMOX GMBH playthings, toys, gifts, hobby products importer and distributor in GERMANY Lilienthalstrasse 13, 34123 Kassel GERMANY +49 561-507 www.limox.de offi@limox.de] Scrapped: record http://best-toy-importers.com/global-toy-importer-directory/limox-gmbh/ Scraping finished....`
sorry about the bad formatted output :(
@higorae after checking your comment I was testing this code to my ubuntu, holy moly it's work like a charm. but on my windows this AddUrl
still not working, just collecting the last result. strange...
@higorae after checking your comment I was testing this code to my ubuntu, holy moly it's work like a charm. but on my windows this
AddUrl
still not working, just collecting the last result. strange...
huuum... It's important to say that I have run in ubuntu as well. Maybe a bug on windows envirement. What is your windows version?
@higorae after checking your comment I was testing this code to my ubuntu, holy moly it's work like a charm. but on my windows this
AddUrl
still not working, just collecting the last result. strange...huuum... It's important to say that I have run in ubuntu as well. Maybe a bug on windows envirement. What is your windows version?
Maybe the problem is that windows is the case insensitive. For the windows side func AddUrl and AddURL are the same functions. AddRawUrl function works as expected because has different name and call AddURL function.
I don't know why
AddUrl(rows []string)
is not working whereAddRawUrl(rows []string)
is working good? what's wrong withAddUrl(rows []string)
?input.txt contain