It is very rare to find worms in urine but still there are a number of parasites, including certain types of worms that can infect the urinary tract
and filariasis are the possibility.
It is best that you consult a urologist
and get urine examination, urine culture KUB ultrasound .
As far as hemorrhoids are concerned take plenty of water,green salad and vegetables,fresh fruits and do regular exercises.Make sure to avoid constipation.